From 603e29ca3a7e5ebac53bd85082224b50113f80b6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 28 Jul 2002 03:23:39 -0700 Subject: [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. --- kernel/ksyms.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel') 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); -- cgit v1.2.3