kerndat: Introduce the storage of kernel run-time info

One of such things we use right now is the device for anon shmem
mappings backing. In the furure this can be extended to check for
various kernel features.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2013-04-15 13:02:09 +04:00
parent 41c7ca8218
commit 5b343b40eb
5 changed files with 71 additions and 30 deletions

11
include/kerndat.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef __CR_KERNDAT_H__
#define __CR_KERNDAT_H__
/*
* kerndat stands for "kernel data" and is a collection
* of run-time information about current kernel
*/
int kerndat_init(void);
extern dev_t kerndat_shmem_dev;
#endif