Re: namei() and opening files in the kernel

Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Thu, 2 May 1996 09:54:56 +0200


On 1 May 96 at 9:35, Alan Cox wrote:

> > 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());

Shouldn't "_fs" be "_user" now? Linus, what about another change?
What about "_ds"?

>
> somefunction();
>
> set_fs(get_fs());
>
> Alan

Ulrich