get_fs( ) and set_fs( )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux