📄 export_symbols-2.6.12.patch
字号:
Index: linux-2.6.12-rc6/fs/filesystems.c===================================================================--- linux-2.6.12-rc6.orig/fs/filesystems.c 2005-06-06 17:22:29.000000000 +0200+++ linux-2.6.12-rc6/fs/filesystems.c 2005-06-14 15:53:58.298522852 +0200@@ -28,7 +28,9 @@ */ static struct file_system_type *file_systems;-static DEFINE_RWLOCK(file_systems_lock);+DEFINE_RWLOCK(file_systems_lock);++EXPORT_SYMBOL(file_systems_lock); /* WARNING: This can be used only if we _already_ own a reference */ void get_filesystem(struct file_system_type *fs)Index: linux-2.6.12-rc6/include/linux/fs.h===================================================================--- linux-2.6.12-rc6.orig/include/linux/fs.h 2005-06-14 15:53:18.356140529 +0200+++ linux-2.6.12-rc6/include/linux/fs.h 2005-06-14 15:53:58.309265039 +0200@@ -1563,6 +1563,7 @@ extern struct file_operations generic_ro_fops; +extern rwlock_t file_systems_lock; #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m)) extern int vfs_readlink(struct dentry *, char __user *, int, const char *);Index: linux-2.6.12-rc6/fs/namespace.c===================================================================--- linux-2.6.12-rc6.orig/fs/namespace.c 2005-06-14 15:53:17.868835847 +0200+++ linux-2.6.12-rc6/fs/namespace.c 2005-06-14 15:53:58.361022851 +0200@@ -1240,6 +1240,7 @@ mntput(old_pwdmnt); } }+EXPORT_SYMBOL(set_fs_pwd); static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd) {Index: linux-2.6.12.5/kernel/exit.c===================================================================--- linux-2.6.12.5.orig/kernel/exit.c 2005-08-17 17:51:28.000000000 +0200+++ linux-2.6.12.5/kernel/exit.c 2005-08-17 17:51:44.000000000 +0200@@ -250,6 +250,8 @@ switch_uid(INIT_USER); } +EXPORT_SYMBOL(reparent_to_init);+ void __set_special_pids(pid_t session, pid_t pgrp) { struct task_struct *curr = current;Index: linux-2.6.12-rc6/fs/dcache.c===================================================================--- linux-2.6.12-rc6.orig/fs/dcache.c 2005-06-14 15:53:19.812195198 +0200+++ linux-2.6.12-rc6/fs/dcache.c 2005-06-14 15:53:58.385436913 +0200@@ -1581,6 +1581,7 @@ return result; }+EXPORT_SYMBOL(is_subdir); void d_genocide(struct dentry *root) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -