The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/kernel/system/do_iopenable.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* The system call implemented in this file:
    2  *   m_type:    SYS_IOPENABLE
    3  *
    4  * The parameters for this system call are:
    5  *    m2_i2:    PROC_NR         (process to give I/O Protection Level bits)
    6  *
    7  * Author:
    8  *    Jorrit N. Herder <jnherder@cs.vu.nl>
    9  */
   10 
   11 #include "../kernel.h"
   12 #include "../system.h"
   13 
   14 /*===========================================================================*
   15  *                              do_iopenable                                 *
   16  *===========================================================================*/
   17 PUBLIC int do_iopenable(m_ptr)
   18 register message *m_ptr;        /* pointer to request message */
   19 {
   20   int proc_nr;
   21 
   22 #if 1 /* ENABLE_USERPRIV && ENABLE_USERIOPL */
   23   proc_nr= m_ptr->PROC_NR;
   24   if (proc_nr == SELF)
   25         proc_nr = m_ptr->m_source;
   26   enable_iop(proc_addr(proc_nr));
   27   return(OK);
   28 #else
   29   return(EPERM);
   30 #endif
   31 }
   32 
   33 

Cache object: c06add79599f8a8728641b71457713dd


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.