Lines 600-605
Link Here
|
600 |
|
600 |
|
601 |
LINUX_KBUILD_USES_EXTRA_CFLAGS |
601 |
LINUX_KBUILD_USES_EXTRA_CFLAGS |
602 |
LINUX_KERNEL_COMPILE_WORKS |
602 |
LINUX_KERNEL_COMPILE_WORKS |
|
|
603 |
LINUX_EXPORTS_FIND_TASK_BY_PID |
604 |
LINUX_EXPORTS_PROC_ROOT_FS |
603 |
LINUX_HAVE_CURRENT_KERNEL_TIME |
605 |
LINUX_HAVE_CURRENT_KERNEL_TIME |
604 |
LINUX_KMEM_CACHE_INIT |
606 |
LINUX_KMEM_CACHE_INIT |
605 |
LINUX_HAVE_KMEM_CACHE_T |
607 |
LINUX_HAVE_KMEM_CACHE_T |
Lines 20-26
Link Here
|
20 |
#endif |
20 |
#endif |
21 |
|
21 |
|
22 |
RCSID |
22 |
RCSID |
23 |
("$Header: /cvs/openafs/src/afs/LINUX/osi_groups.c,v 1.25.2.15 2008/04/19 21:56:11 shadow Exp $"); |
23 |
("$Header: /cvs/openafs/src/afs/LINUX/osi_groups.c,v 1.25.2.16 2008/06/09 03:39:44 shadow Exp $"); |
24 |
|
24 |
|
25 |
#include "afs/sysincludes.h" |
25 |
#include "afs/sysincludes.h" |
26 |
#include "afsincludes.h" |
26 |
#include "afsincludes.h" |
Lines 646-652
Link Here
|
646 |
# endif |
646 |
# endif |
647 |
rcu_read_lock(); |
647 |
rcu_read_lock(); |
648 |
# endif |
648 |
# endif |
|
|
649 |
#if defined(EXPORTED_FIND_TASK_BY_PID) |
649 |
p = find_task_by_pid(1); |
650 |
p = find_task_by_pid(1); |
|
|
651 |
#else |
652 |
p = find_task_by_vpid(1); |
653 |
#endif |
650 |
if (p && p->user->session_keyring) |
654 |
if (p && p->user->session_keyring) |
651 |
__key_type_keyring = p->user->session_keyring->type; |
655 |
__key_type_keyring = p->user->session_keyring->type; |
652 |
# ifdef EXPORTED_TASKLIST_LOCK |
656 |
# ifdef EXPORTED_TASKLIST_LOCK |
Lines 15-21
Link Here
|
15 |
#include "afs/param.h" |
15 |
#include "afs/param.h" |
16 |
|
16 |
|
17 |
RCSID |
17 |
RCSID |
18 |
("$Header: /cvs/openafs/src/afs/LINUX/osi_module.c,v 1.52.2.29 2007/10/24 18:09:50 shadow Exp $"); |
18 |
("$Header: /cvs/openafs/src/afs/LINUX/osi_module.c,v 1.52.2.30 2008/06/09 03:39:44 shadow Exp $"); |
19 |
|
19 |
|
20 |
#include <linux/module.h> /* early to avoid printf->printk mapping */ |
20 |
#include <linux/module.h> /* early to avoid printf->printk mapping */ |
21 |
#include "afs/sysincludes.h" |
21 |
#include "afs/sysincludes.h" |
Lines 237-244
Link Here
|
237 |
{ |
237 |
{ |
238 |
struct proc_dir_entry *entry1; |
238 |
struct proc_dir_entry *entry1; |
239 |
struct proc_dir_entry *entry2; |
239 |
struct proc_dir_entry *entry2; |
|
|
240 |
#if !defined(EXPORTED_PROC_ROOT_FS) |
241 |
char path[64]; |
242 |
#endif |
240 |
|
243 |
|
|
|
244 |
#if defined(EXPORTED_PROC_ROOT_FS) |
241 |
openafs_procfs = proc_mkdir(PROC_FSDIRNAME, proc_root_fs); |
245 |
openafs_procfs = proc_mkdir(PROC_FSDIRNAME, proc_root_fs); |
|
|
246 |
#else |
247 |
sprintf(path, "fs/%s", PROC_FSDIRNAME); |
248 |
openafs_procfs = proc_mkdir(path, NULL); |
249 |
#endif |
242 |
entry1 = create_proc_entry(PROC_SYSCALL_NAME, 0666, openafs_procfs); |
250 |
entry1 = create_proc_entry(PROC_SYSCALL_NAME, 0666, openafs_procfs); |
243 |
|
251 |
|
244 |
entry1->proc_fops = &afs_syscall_fops; |
252 |
entry1->proc_fops = &afs_syscall_fops; |
Lines 263-271
Link Here
|
263 |
static void |
271 |
static void |
264 |
afsproc_exit(void) |
272 |
afsproc_exit(void) |
265 |
{ |
273 |
{ |
|
|
274 |
#if !defined(EXPORTED_PROC_ROOT_FS) |
275 |
char path[64]; |
276 |
#endif |
277 |
|
278 |
#if defined(EXPORTED_PROC_ROOT_FS) |
279 |
remove_proc_entry(PROC_FSDIRNAME, proc_root_fs); |
280 |
#else |
281 |
sprintf(path, "fs/%s", PROC_FSDIRNAME); |
282 |
remove_proc_entry(path, NULL); |
283 |
#endif |
266 |
remove_proc_entry(PROC_CELLSERVDB_NAME, openafs_procfs); |
284 |
remove_proc_entry(PROC_CELLSERVDB_NAME, openafs_procfs); |
267 |
remove_proc_entry(PROC_SYSCALL_NAME, openafs_procfs); |
285 |
remove_proc_entry(PROC_SYSCALL_NAME, openafs_procfs); |
268 |
remove_proc_entry(PROC_FSDIRNAME, proc_root_fs); |
|
|
269 |
#if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) |
286 |
#if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL) |
270 |
if (ioctl32_done) |
287 |
if (ioctl32_done) |
271 |
unregister_ioctl32_conversion(VIOC_SYSCALL32); |
288 |
unregister_ioctl32_conversion(VIOC_SYSCALL32); |
Lines 1005-1007
Link Here
|
1005 |
AC_DEFINE([EXPORTED_RCU_READ_LOCK], 1, [define if rcu_read_lock() is usable]) |
1005 |
AC_DEFINE([EXPORTED_RCU_READ_LOCK], 1, [define if rcu_read_lock() is usable]) |
1006 |
fi]) |
1006 |
fi]) |
1007 |
|
1007 |
|
|
|
1008 |
AC_DEFUN([LINUX_EXPORTS_FIND_TASK_BY_PID], [ |
1009 |
AC_MSG_CHECKING([if find_task_by_pid is usable]) |
1010 |
AC_CACHE_VAL([ac_cv_linux_exports_find_task_by_pid], [ |
1011 |
AC_TRY_KBUILD( |
1012 |
[#include <linux/sched.h>], |
1013 |
[pid_t p; |
1014 |
find_task_by_pid(p);], |
1015 |
ac_cv_linux_exports_find_task_by_pid=yes, |
1016 |
ac_cv_linux_exports_find_task_by_pid=no)]) |
1017 |
AC_MSG_RESULT($ac_cv_linux_exports_find_task_by_pid) |
1018 |
if test "x$ac_cv_linux_exports_find_task_by_pid" = "xyes"; then |
1019 |
AC_DEFINE([EXPORTED_FIND_TASK_BY_PID], 1, [define if find_task_by_pid() is usable]) |
1020 |
fi]) |
1021 |
|
1022 |
AC_DEFUN([LINUX_EXPORTS_PROC_ROOT_FS], [ |
1023 |
AC_MSG_CHECKING([if proc_root_fs is defined and exported]) |
1024 |
AC_CACHE_VAL([ac_cv_linux_exports_proc_root_fs], [ |
1025 |
AC_TRY_KBUILD( |
1026 |
[#include <linux/proc_fs.h>], |
1027 |
[struct proc_dir_entry *p = proc_root_fs;], |
1028 |
ac_cv_linux_exports_proc_root_fs=yes, |
1029 |
ac_cv_linux_exports_proc_root_fs=no)]) |
1030 |
AC_MSG_RESULT($ac_cv_linux_exports_proc_root_fs) |
1031 |
if test "x$ac_cv_linux_exports_proc_root_fs" = "xyes"; then |
1032 |
AC_DEFINE([EXPORTED_PROC_ROOT_FS], 1, [define if proc_root_fs is exported]) |
1033 |
fi]) |
1034 |
|