Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139629
b: refs/heads/master
c: 06c421e
h: refs/heads/master
i:
  139627: fb7f2e7
v: v3
  • Loading branch information
Kevin Hilman authored and Linus Torvalds committed Apr 3, 2009
1 parent 9966f39 commit 29eebbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf6aede712334d7338d5c47a5ee5ba3883c82a61
refs/heads/master: 06c421ee0d5af95c8c6749ca0ba620cd5010707f
11 changes: 11 additions & 0 deletions trunk/include/linux/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,15 @@ enum mem_add_context { BOOT, HOTPLUG };
#define hotplug_memory_notifier(fn, pri) do { } while (0)
#endif

/*
* 'struct memory_accessor' is a generic interface to provide
* in-kernel access to persistent memory such as i2c or SPI EEPROMs
*/
struct memory_accessor {
ssize_t (*read)(struct memory_accessor *, char *buf, off_t offset,
size_t count);
ssize_t (*write)(struct memory_accessor *, const char *buf,
off_t offset, size_t count);
};

#endif /* _LINUX_MEMORY_H_ */

0 comments on commit 29eebbd

Please sign in to comment.