mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
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:
parent
41c7ca8218
commit
5b343b40eb
5 changed files with 71 additions and 30 deletions
11
include/kerndat.h
Normal file
11
include/kerndat.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue