OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [fs/] [smbfs/] [ioctl.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 *  ioctl.c
3
 *
4
 *  Copyright (C) 1995, 1996 by Volker Lendecke
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
        {
24
        case SMB_IOC_GETMOUNTUID:
25
                if ((result = verify_area(VERIFY_WRITE, (uid_t *) arg,
26
                                          sizeof(uid_t))) != 0)
27
                {
28
                        return result;
29
                }
30
                put_fs_word(SMB_SERVER(inode)->m.mounted_uid, (uid_t *) arg);
31
                return 0;
32
        default:
33
                return -EINVAL;
34
        }
35
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.