summaryrefslogtreecommitdiffstats
path: root/fs/smbfs/ioctl.c
blob: d4685a60b0a62565708df71ceda106a53cc8c75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *  ioctl.c
 *
 *  Copyright (C) 1995, 1996 by Volker Lendecke
 *
 */

#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/smb_fs.h>
#include <linux/ioctl.h>
#include <linux/sched.h>
#include <linux/mm.h>

#include <asm/uaccess.h>

int
smb_ioctl(struct inode *inode, struct file *filp,
	  unsigned int cmd, unsigned long arg)
{
	switch (cmd)
	{
	case SMB_IOC_GETMOUNTUID:
		return put_user(SMB_SERVER(inode)->m.mounted_uid, (uid_t *) arg);

	default:
		return -EINVAL;
	}
}