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 USER_DS   MAKE_MM_SEG(memory_end)
 
#define KERNEL_DS   MAKE_MM_SEG(0xe0000000UL)
 
#define get_ds()   (KERNEL_DS)
 
#define get_fs()   (__current_thread_info->addr_limit)
 
#define segment_eq(a, b)   ((a).seg == (b).seg)
 
#define __kernel_ds_p()   segment_eq(get_fs(), KERNEL_DS)
 
#define get_addr_limit()   (get_fs().seg)
 
#define set_fs(_x)
 

Macro Definition Documentation

#define __kernel_ds_p ( )    segment_eq(get_fs(), KERNEL_DS)

Definition at line 35 of file segment.h.

#define get_addr_limit ( )    (get_fs().seg)

Definition at line 36 of file segment.h.

#define get_ds (   void)    (KERNEL_DS)

Definition at line 32 of file segment.h.

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

Definition at line 33 of file segment.h.

#define KERNEL_DS   MAKE_MM_SEG(0xe0000000UL)

Definition at line 29 of file segment.h.

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

Definition at line 22 of file segment.h.

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

Definition at line 34 of file segment.h.

#define set_fs (   _x)
Value:
do { \
__current_thread_info->addr_limit = (_x); \
} while(0)

Definition at line 38 of file segment.h.

#define USER_DS   MAKE_MM_SEG(memory_end)

Definition at line 28 of file segment.h.