phunix/minix/lib/libc/sys/kernel_utils.c
David van Moolenbroek 594df55e53 Abstract away minix_kerninfo access
Instead of importing an external _minix_kerninfo variable, any code
using the shared kernel page should now call get_minix_kerninfo(3).
Since this is the only logical name for such a function, rename the
previous get_minix_kerninfo call to ipc_minix_kerninfo.

Change-Id: I2e424b6fb55aa55d3da850187f1f7a0b7cbbf910
2015-09-21 15:09:04 +00:00

26 lines
421 B
C

/*
* This file contains the main routine for retrieval of the kernel information
* page.
*/
#define _MINIX_SYSTEM
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <assert.h>
extern struct minix_kerninfo *_minix_kerninfo;
/*
* Get a pointer to the kernel information page.
*/
struct minix_kerninfo *
get_minix_kerninfo(void)
{
assert(_minix_kerninfo != NULL);
return _minix_kerninfo;
}