lkml.org 
[lkml]   [1996]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: namei() and opening files in the kernel
Date
> >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



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.039 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site