diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
| commit | 9efe21cb82b5dbe3b0b2ae4de4eccc64ecb94e95 (patch) | |
| tree | 7ff8833745d2f268f897f6fa4a27263b4a572245 /include/linux/memory.h | |
| parent | de18836e447c2dc30120c0919b8db8ddc0401cc4 (diff) | |
| parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) | |
Merge branch 'linus' into irq/threaded
Conflicts:
include/linux/irq.h
kernel/irq/handle.c
Diffstat (limited to 'include/linux/memory.h')
| -rw-r--r-- | include/linux/memory.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h index 3fdc10806d31..37fa19b34ef5 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h | |||
| @@ -99,4 +99,21 @@ enum mem_add_context { BOOT, HOTPLUG }; | |||
| 99 | #define hotplug_memory_notifier(fn, pri) do { } while (0) | 99 | #define hotplug_memory_notifier(fn, pri) do { } while (0) |
| 100 | #endif | 100 | #endif |
| 101 | 101 | ||
| 102 | /* | ||
| 103 | * 'struct memory_accessor' is a generic interface to provide | ||
| 104 | * in-kernel access to persistent memory such as i2c or SPI EEPROMs | ||
| 105 | */ | ||
| 106 | struct memory_accessor { | ||
| 107 | ssize_t (*read)(struct memory_accessor *, char *buf, off_t offset, | ||
| 108 | size_t count); | ||
| 109 | ssize_t (*write)(struct memory_accessor *, const char *buf, | ||
| 110 | off_t offset, size_t count); | ||
| 111 | }; | ||
| 112 | |||
| 113 | /* | ||
| 114 | * Kernel text modification mutex, used for code patching. Users of this lock | ||
| 115 | * can sleep. | ||
| 116 | */ | ||
| 117 | extern struct mutex text_mutex; | ||
| 118 | |||
| 102 | #endif /* _LINUX_MEMORY_H_ */ | 119 | #endif /* _LINUX_MEMORY_H_ */ |
