📄 memblk.h
字号:
/* * include/linux/memblk.h - generic memblk definition * * This is mainly for topological representation. We define the * basic 'struct memblk' here, which can be embedded in per-arch * definitions of memory blocks. * * Basic handling of the devices is done in drivers/base/memblk.c * and system devices are handled in drivers/base/sys.c. * * MemBlks are exported via driverfs in the class/memblk/devices/ * directory. * * Per-memblk interfaces can be implemented using a struct device_interface. * See the following for how to do this: * - drivers/base/intf.c * - Documentation/driver-model/interface.txt */#ifndef _LINUX_MEMBLK_H_#define _LINUX_MEMBLK_H_#include <linux/device.h>#include <linux/node.h>struct memblk { int node_id; /* The node which contains the MemBlk */ struct sys_device sysdev;};extern int register_memblk(struct memblk *, int, struct node *);#endif /* _LINUX_MEMBLK_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -