Re: how do you call userspace syscalls (e.g. sys_rename) from inside kernel
From: Jan-Benedict Glaw
Date: Fri Oct 08 2004 - 11:40:22 EST
On Fri, 2004-10-08 17:20:25 +0100, Luke Kenneth Casson Leighton <lkcl@xxxxxxxx>
wrote in message <20041008162025.GL5551@xxxxxxxx>:
> On Fri, Oct 08, 2004 at 05:18:40PM +0200, Brice Goglin wrote:
> > mm_segment_t old_fs;
> > old_fs = get_fs();
> > set_fs(KERNEL_DS);
> > <do you stuff here>
> > set_fs(old_fs);
>
> that's it! that's what i was looking for. thank you.
Most probably, this is not what you were looking for. You just don't
know that yet (-:
MfG, JBG
--
Jan-Benedict Glaw jbglaw@xxxxxxxxxx . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature