summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2002-05-17 21:58:06 -0700
committerChristoph Hellwig <hch@sb.bsdonline.org>2002-05-17 21:58:06 -0700
commitff59bcd2fe9103e3374f8b415cb12b5f21381c24 (patch)
tree67f188bd6cf9ff5101f6d857b87fe50c1bf02cb3 /kernel
parent3bfae933dbdebb085216440d1eea406dadfa3d64 (diff)
[PATCH] cleanup read/write
Currently sys_read/sys_pread and sys_write/sys_pwrite basically contain lots of duplication of the same checks/code. This moves all that into vfs_read/vfs_write helpers that have the same prototypes as the read/write file operations. In addition I have choosen to export these interfaces to module so people doing inkernel file reading/writing can use these instead of duplicating the checks (which is very likely to be done wrong).
Diffstat (limited to 'kernel')
-rw-r--r--kernel/ksyms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/ksyms.c b/kernel/ksyms.c
index 9001c829f4ef..3963850911bc 100644
--- a/kernel/ksyms.c
+++ b/kernel/ksyms.c
@@ -243,6 +243,8 @@ EXPORT_SYMBOL(shrink_dcache_anon);
EXPORT_SYMBOL(find_inode_number);
EXPORT_SYMBOL(is_subdir);
EXPORT_SYMBOL(get_unused_fd);
+EXPORT_SYMBOL(vfs_read);
+EXPORT_SYMBOL(vfs_write);
EXPORT_SYMBOL(vfs_create);
EXPORT_SYMBOL(vfs_mkdir);
EXPORT_SYMBOL(vfs_mknod);