diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-28 03:23:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-28 03:23:39 -0700 |
| commit | 603e29ca3a7e5ebac53bd85082224b50113f80b6 (patch) | |
| tree | 30ac0fa5c0ed8eb5138d2d48d131fa6dad40a103 /kernel | |
| parent | 0d85f8bf8d8491a813152235929f9bcb9b7b6589 (diff) | |
[PATCH] permit modular build of raw driver
This patch allows the raw driver to be built as a kernel module.
It also cleans up a bunch of stuff, C99ifies the initialisers, gives
lots of symbols static scope, etc.
The module is unloadable when there are zero bindings. The current
ioctl() interface have no way of undoing a binding - it only allows
bindings to be overwritten. So I overloaded a bind to major=0,minor=0
to mean "undo the binding". I'll update the raw(8) manpage for that.
generic_file_direct_IO has been exported to modules.
The call to invalidate_inode_pages2() has been removed from all
generic_file_driect_IO() callers, into generic_file_direct_IO() itself.
Mainly to avoid exporting invalidate_inode_pages2() to modules.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/ksyms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/ksyms.c b/kernel/ksyms.c index f18263655052..3f62625b5cab 100644 --- a/kernel/ksyms.c +++ b/kernel/ksyms.c @@ -340,6 +340,7 @@ EXPORT_SYMBOL(register_disk); EXPORT_SYMBOL(read_dev_sector); EXPORT_SYMBOL(init_buffer); EXPORT_SYMBOL(wipe_partitions); +EXPORT_SYMBOL(generic_file_direct_IO); /* tty routines */ EXPORT_SYMBOL(tty_hangup); |
