File:  [MW Coherent from dump] / coherent / f / usr / include / sys / kmem.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

#ifndef	__SYS_KMEM_H__
#define	__SYS_KMEM_H__

/*
 * This header deals with kernel memory-management functions.
 */
/*
 *-IMPORTS:
 *	<common/ccompat.h>
 *		__EXTERN_C_BEGIN__
 *		__EXTERN_C_END__
 *		__VOID__
 *		__PROTO ()
 *	<common/_size.h>
 *		size_t
 *	<common/_null.h>
 *		NULL
 */

#include <common/ccompat.h>
#include <common/_size.h>
#include <common/_null.h>


/*
 * Flag values for kmem_alloc () and kmem_zalloc (), also used by various
 * lock-allocation functions in <sys/ksynch.h>
 */

enum {	KM_SLEEP,
	KM_NOSLEEP
};


__EXTERN_C_BEGIN__

__VOID__      *	kmem_alloc	__PROTO ((size_t _size, int _flag));
void		kmem_free	__PROTO ((__VOID__ * _addr, size_t _size));
__VOID__      *	kmem_zalloc	__PROTO ((size_t _size, int _flag));

__EXTERN_C_END__


#endif	/* ! defined (__SYS_KMEM_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.