blob: 5f216fb47907b95b147212255dd6d74e4e5b7b58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* 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_ */
|