lkml.org 
[lkml]   [1997]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Starting an application from the kernel II: the revenge
Date
> functions expect pointers to buffers located in the user-space which I
> cannot provide from the kernel. For example, when the VFS calls the RNFS
> open() function, I want to write a new timestamp in a special-purpose file
> on the NFS server. For this, I call the NFS write() function, which expects
> a buffer in user-space!!!

Wrap the calls in

int fs=get_fs();
set_fs(get_ds());
Call function (kernel space happens to be user now)
set_fs(fs);
return;

Alan


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