RE: Question about kernel threads

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

 



Thank you!  It's all in the source, somewhere :-)

I don't suppose somebody knows how to mount a filesystem for the
exclusive use of ONE process, excluding even root processes.

> -----Original Message-----
> From: Rajeev Bector [mailto:rbector@andiamo.com]
> Sent: Friday, September 07, 2001 12:12 PM
> To: Rob Fuller
> Cc: kernelnewbies@nl.linux.org
> Subject: RE: Question about kernel threads
> 
> 
> Actually the solution to that problem is
> 
> mm_segment_t old_fs;
> 
> old_fs = get_fs();
> set_fs(KERNEL_DS);
> 
> <call sys_read etc>
> ...
> set_fs(old_fs);
> 
> You can grep around in the kernel source code
> to see other places where set_fs() is used.
> 
> 
> regards,
> Rajeev
> 
> 
> 
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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