This source file includes following definitions.
- smb_ioctl
1
2
3
4
5
6
7 #include <linux/config.h>
8 #ifdef MODULE
9 #include <linux/module.h>
10 #include <linux/version.h>
11 #else
12 #define MOD_INC_USE_COUNT
13 #define MOD_DEC_USE_COUNT
14 #endif
15
16 #include <asm/segment.h>
17 #include <linux/errno.h>
18 #include <linux/fs.h>
19 #include <linux/smb_fs.h>
20 #include <linux/ioctl.h>
21 #include <linux/sched.h>
22 #include <linux/mm.h>
23
24 int
25 smb_ioctl (struct inode * inode, struct file * filp,
26 unsigned int cmd, unsigned long arg)
27 {
28 int result;
29
30 switch (cmd) {
31 case SMB_IOC_GETMOUNTUID:
32 if ((result = verify_area(VERIFY_WRITE, (uid_t*) arg,
33 sizeof(uid_t))) != 0) {
34 return result;
35 }
36 put_fs_word(SMB_SERVER(inode)->m.mounted_uid, (uid_t*) arg);
37 return 0;
38 default:
39 return -EINVAL;
40 }
41 }
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59