Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: namei() and opening files in the kernel | Date | Wed, 01 May 1996 15:00:22 -0400 | From | "Michael K. Johnson" <> |
| |
Alan Cox writes: >> My question is: am I doing something I shouldn't? If so, how should I be doing this? If not, any ideas about what I might be doing wrong? > >To make calls with kernel space as if it were user space you do: > > int fs=get_fs(); > set_fs(get_ds()); > > somefunction(); > > set_fs(get_fs());
Shouldn't that last line be set_fs(fs); ?
michaelkjohnson
| ![\](/images/icornerr.gif) |