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 MAKE_MM_SEG(s)   ((mm_segment_t) { (s) })
 
#define KERNEL_DS   MAKE_MM_SEG(0xFFFFFFFFUL)
 
#define USER_DS   KERNEL_DS
 
#define segment_eq(a, b)   ((a).seg == (b).seg)
 
#define get_ds()   (KERNEL_DS)
 
#define get_fs()   (current_thread_info()->addr_limit)
 
#define set_fs(x)   (current_thread_info()->addr_limit = (x))
 

Macro Definition Documentation

#define get_ds (   void)    (KERNEL_DS)

Definition at line 28 of file segment.h.

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

Definition at line 30 of file segment.h.

#define KERNEL_DS   MAKE_MM_SEG(0xFFFFFFFFUL)

Definition at line 19 of file segment.h.

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

Definition at line 10 of file segment.h.

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

Definition at line 26 of file segment.h.

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

Definition at line 31 of file segment.h.

#define USER_DS   KERNEL_DS

Definition at line 23 of file segment.h.