Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

i386/kernel/ioport.c File Reference

#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/stddef.h>

Include dependency graph for i386/kernel/ioport.c:

Go to the source code of this file.

Defines

#define IO_BITMAP_OFFSET   offsetof(struct thread_struct,io_bitmap)

Functions

static void set_bitmap (unsigned long *bitmap, short base, short extent, int new_value)
asmlinkage int sys_ioperm (unsigned long from, unsigned long num, int turn_on)
asmlinkage int sys_iopl (unsigned long unused)


Define Documentation

#define IO_BITMAP_OFFSET   offsetof(struct thread_struct,io_bitmap)
 

Referenced by sys_ioperm().


Function Documentation

static void set_bitmap unsigned long bitmap,
short  base,
short  extent,
int  new_value
[static]
 

Definition at line 19 of file i386/kernel/ioport.c.

References length(), and mask.

Referenced by sys_ioperm().

Here is the call graph for this function:

asmlinkage int sys_ioperm unsigned long  from,
unsigned long  num,
int  turn_on
 

Definition at line 55 of file i386/kernel/ioport.c.

Referenced by sys32_ioperm(), and vt_ioctl().

asmlinkage int sys_iopl unsigned long  unused  ) 
 

Definition at line 90 of file i386/kernel/ioport.c.

References CAP_SYS_RAWIO, capable, pt_regs::ebx, pt_regs::eflags, EINVAL, and EPERM.