Re: how do you call userspace syscalls (e.g. sys_rename) from inside kernel

From: Arnd Bergmann
Date: Sun Oct 10 2004 - 18:43:27 EST


On Maandag 11 Oktober 2004 01:13, Aboo Valappil wrote:
> I also wanted not associate the file with the current/any
> processes.
>
> Any ideas on this ?
>
> Then I thought of using a work around and avoid opening files in kernel
> mode.

Most of the code that traditionally used to read files from inside the
kernel can be converted to calling request_firmware(). The basic
idea is that you have a user space helper that writes the data into
the kernel instead of the other way round.

Arnd <><

Attachment: pgp00000.pgp
Description: signature