Re: namei() and opening files in the kernel

Alan Cox (alan@cymru.net)
Thu, 2 May 1996 10:27:04 +0100 (BST)


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

Yes.. Oops: EIP... brain spilled