Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
segment.h File Reference

Go to the source code of this file.

Data Structures

struct  mm_segment_t
 

Macros

#define USER_DATA   (1)
 
#define __USER_DS   (USER_DATA)
 
#define USER_PROGRAM   (2)
 
#define SUPER_DATA   (5)
 
#define __KERNEL_DS   (SUPER_DATA)
 
#define SUPER_PROGRAM   (6)
 
#define CPU_SPACE   (7)
 
#define MAKE_MM_SEG(s)   ((mm_segment_t) { (s) })
 
#define USER_DS   MAKE_MM_SEG(TASK_SIZE)
 
#define KERNEL_DS   MAKE_MM_SEG(0xFFFFFFFF)
 
#define get_ds()   (KERNEL_DS)
 
#define get_fs()   (current_thread_info()->addr_limit)
 
#define set_fs(x)   (current_thread_info()->addr_limit = (x))
 
#define segment_eq(a, b)   ((a).seg == (b).seg)
 

Macro Definition Documentation

#define __KERNEL_DS   (SUPER_DATA)

Definition at line 13 of file segment.h.

#define __USER_DS   (USER_DATA)

Definition at line 8 of file segment.h.

#define CPU_SPACE   (7)

Definition at line 16 of file segment.h.

#define get_ds (   void)    (KERNEL_DS)

Definition at line 56 of file segment.h.

#define get_fs (   void)    (current_thread_info()->addr_limit)

Definition at line 57 of file segment.h.

#define KERNEL_DS   MAKE_MM_SEG(0xFFFFFFFF)

Definition at line 55 of file segment.h.

#define MAKE_MM_SEG (   s)    ((mm_segment_t) { (s) })

Definition at line 24 of file segment.h.

#define segment_eq (   a,
  b 
)    ((a).seg == (b).seg)

Definition at line 61 of file segment.h.

#define set_fs (   x)    (current_thread_info()->addr_limit = (x))

Definition at line 58 of file segment.h.

#define SUPER_DATA   (5)

Definition at line 11 of file segment.h.

#define SUPER_PROGRAM   (6)

Definition at line 15 of file segment.h.

#define USER_DATA   (1)

Definition at line 6 of file segment.h.

#define USER_DS   MAKE_MM_SEG(TASK_SIZE)

Definition at line 54 of file segment.h.

#define USER_PROGRAM   (2)

Definition at line 10 of file segment.h.