get_fs( ) and set_fs( )

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wang Yu
Date: Thursday, October 25, 2007 - 2:54 am

Hi,all
I have seen the following codes, but do not know what's the meaning of them:
       mm_segment_t old_fs;
      old_fs = get_fs();
      set_fs (KERNEL_DS);
     ........
     set_fs(old_fs);
What is the usage of these codes and in what condition they will be used?
Thanks!

-- 
National Research Center for Intelligent Computing Systems
Institute of Computing Technology, Chinese Academy of Sciences
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
get_fs( ) and set_fs( ), Wang Yu, (Thu Oct 25, 2:54 am)
RE: get_fs( ) and set_fs( ), Saumendra Dash, (Thu Oct 25, 5:45 am)
RE: get_fs( ) and set_fs( ), Thippeswamy, Aravind, (Thu Oct 25, 5:50 am)
RE: get_fs( ) and set_fs( ), Thippeswamy, Aravind, (Thu Oct 25, 6:25 am)