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

From: Arnd Bergmann (arnd_at_arndb.de)
Date: 10/11/04

  • Next message: Moritz Muehlenhoff: "Re: possible GPL violation by Free"
    To: "Aboo Valappil" <aboo@ABOOSPLANET.com>
    Date:	Mon, 11 Oct 2004 01:35:16 +0200
    
    
    

    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 <><

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


    • application/pgp-signature attachment: signature

  • Next message: Moritz Muehlenhoff: "Re: possible GPL violation by Free"

    Relevant Pages

    • Re: [PATCH 1/3] 2.6.8-rc4-mm1 - Fix UML build
      ... can access them all, and initialized data all before uninitialized, so ... SYMLINKS:= $,$/$f) ... semaphore.c-dir = kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Real-Time Preemption, -RT-2.6.12-final-V0.7.50-24
      ... > rebooted to a kernel that doesn't have the RT-preempt patch but ... getting a very verbose running trail, almost like an strace output, ... Copyright 2005 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... Subject: Error mounting root fs on 72:01 using Promise FastTrak TX2000 ... > Now I'm sucessfully booting my system with the 2.4.23 kernel using ... I think it's when the ATARAID driver is about to fire up. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... > Now I'm sucessfully booting my system with the 2.4.23 kernel using ... I think it's when the ATARAID driver is about to fire up. ... > the hard drives since this is the only thing that has changed. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: udev and devfs - The final word
      ... As each device driver loads and registers with the kernel, ... 'cookies' can be written out to keep them separately ID'd. ... e.g. increasing error rates and aging silicon will ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)