Messages in this thread | | | From | (Alan Cox) | Subject | Re: Starting an application from the kernel II: the revenge | Date | Tue, 29 Apr 1997 20:30:30 +0100 (BST) |
| |
> 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
| |