dlmfs.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) | dlmfs.c (e4dca7b7aa08b22893c45485d222b5807c1375ae) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmfs.c 5 * 6 * Code which implements the kernel side of a minimal userspace 7 * interface to our DLM. This file handles the virtual file system 8 * used for communication with userspace. Credit should go to ramfs, --- 74 unchanged lines hidden (view full) --- 83 * interaction. 84 * 85 * Capabilities: 86 * - bast : POLLIN against the file descriptor of a held lock 87 * signifies a bast fired on the lock. 88 */ 89#define DLMFS_CAPABILITIES "bast stackglue" 90static int param_set_dlmfs_capabilities(const char *val, | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmfs.c 5 * 6 * Code which implements the kernel side of a minimal userspace 7 * interface to our DLM. This file handles the virtual file system 8 * used for communication with userspace. Credit should go to ramfs, --- 74 unchanged lines hidden (view full) --- 83 * interaction. 84 * 85 * Capabilities: 86 * - bast : POLLIN against the file descriptor of a held lock 87 * signifies a bast fired on the lock. 88 */ 89#define DLMFS_CAPABILITIES "bast stackglue" 90static int param_set_dlmfs_capabilities(const char *val, |
91 struct kernel_param *kp) | 91 const struct kernel_param *kp) |
92{ 93 printk(KERN_ERR "%s: readonly parameter\n", kp->name); 94 return -EINVAL; 95} 96static int param_get_dlmfs_capabilities(char *buffer, | 92{ 93 printk(KERN_ERR "%s: readonly parameter\n", kp->name); 94 return -EINVAL; 95} 96static int param_get_dlmfs_capabilities(char *buffer, |
97 struct kernel_param *kp) | 97 const struct kernel_param *kp) |
98{ 99 return strlcpy(buffer, DLMFS_CAPABILITIES, 100 strlen(DLMFS_CAPABILITIES) + 1); 101} 102module_param_call(capabilities, param_set_dlmfs_capabilities, 103 param_get_dlmfs_capabilities, NULL, 0444); 104MODULE_PARM_DESC(capabilities, DLMFS_CAPABILITIES); 105 --- 585 unchanged lines hidden --- | 98{ 99 return strlcpy(buffer, DLMFS_CAPABILITIES, 100 strlen(DLMFS_CAPABILITIES) + 1); 101} 102module_param_call(capabilities, param_set_dlmfs_capabilities, 103 param_get_dlmfs_capabilities, NULL, 0444); 104MODULE_PARM_DESC(capabilities, DLMFS_CAPABILITIES); 105 --- 585 unchanged lines hidden --- |