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

Macro Definition Documentation

#define get_ds (   void)    (KERNEL_DS)

Definition at line 13 of file segment.h.

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

Definition at line 14 of file segment.h.

#define KERNEL_DS   ((mm_segment_t){0})

Definition at line 10 of file segment.h.

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

Definition at line 18 of file segment.h.

#define set_fs (   x)    do { current_thread_info()->addr_limit = (x); } while (0)

Definition at line 15 of file segment.h.

#define USER_DS   KERNEL_DS

Definition at line 11 of file segment.h.