
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
26 lines
421 B
C
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;
|
|
}
|