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