Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
422 | giacomo | 1 | /* |
2 | * include/linux/memblk.h - generic memblk definition |
||
3 | * |
||
4 | * This is mainly for topological representation. We define the |
||
5 | * basic 'struct memblk' here, which can be embedded in per-arch |
||
6 | * definitions of memory blocks. |
||
7 | * |
||
8 | * Basic handling of the devices is done in drivers/base/memblk.c |
||
9 | * and system devices are handled in drivers/base/sys.c. |
||
10 | * |
||
11 | * MemBlks are exported via driverfs in the class/memblk/devices/ |
||
12 | * directory. |
||
13 | * |
||
14 | * Per-memblk interfaces can be implemented using a struct device_interface. |
||
15 | * See the following for how to do this: |
||
16 | * - drivers/base/intf.c |
||
17 | * - Documentation/driver-model/interface.txt |
||
18 | */ |
||
19 | #ifndef _LINUX_MEMBLK_H_ |
||
20 | #define _LINUX_MEMBLK_H_ |
||
21 | |||
22 | #include <linux/device.h> |
||
23 | #include <linux/node.h> |
||
24 | |||
25 | struct memblk { |
||
26 | int node_id; /* The node which contains the MemBlk */ |
||
27 | struct sys_device sysdev; |
||
28 | }; |
||
29 | |||
30 | extern int register_memblk(struct memblk *, int, struct node *); |
||
31 | |||
32 | #endif /* _LINUX_MEMBLK_H_ */ |