File: memblk.h

package info (click to toggle)
linux-kernel-headers 2.5.999-test7-bk-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,268 kB
  • ctags: 214,024
  • sloc: ansic: 324,929; cpp: 783; makefile: 79; asm: 61; sh: 61
file content (32 lines) | stat: -rw-r--r-- 935 bytes parent folder | download
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_ */