root/fs/smbfs/ioctl.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. smb_ioctl

   1 /*
   2  *  ioctl.c
   3  *
   4  *  Copyright (C) 1995 by Volker Lendecke
   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,
     /* [previous][next][first][last][top][bottom][index][help] */
  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  * Overrides for Emacs so that we follow Linus's tabbing style.
  46  * Emacs will notice this stuff at the end of the file and automatically
  47  * adjust the settings for this buffer only.  This must remain at the end
  48  * of the file.
  49  * ---------------------------------------------------------------------------
  50  * Local variables:
  51  * c-indent-level: 8
  52  * c-brace-imaginary-offset: 0
  53  * c-brace-offset: -8
  54  * c-argdecl-indent: 8
  55  * c-label-offset: -8
  56  * c-continued-statement-offset: 8
  57  * c-continued-brace-offset: 0
  58  * End:
  59  */

/* [previous][next][first][last][top][bottom][index][help] */