[newbie] Allocating memory in kernel land

From: Paolo Pisati (p.pisati_at_oltrelinux.com)
Date: 06/30/03

  • Next message: Paul Robinson: "Re: Fwd: Re: TODO list?"
    Date: Mon, 30 Jun 2003 11:09:19 +0200
    To: FreeBSD_Hackers <freebsd-hackers@FreeBSD.ORG>
    
    

    Hi guys,

    as the subject says, i'm a newbie in kernel and
    i'm facing the task to "port" a userland program
    in kernel land (actually inside a netgraph node)
    and i was wondering how to threat the memory inside
    the kernel:

    are there any important things i should be aware of?

    like memory/stack limit, syscall, things thats shouldn't be,
    and so on.

    thanks in advance.

    -- 
    Paolo
    GUFI: http://www.gufi.org
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Paul Robinson: "Re: Fwd: Re: TODO list?"

    Relevant Pages

    • Re: GDB/Kernel Question
      ... > the userland program it calls a kernel function. ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-hackers)
    • Re: GDB/Kernel Question
      ... > the userland program it calls a kernel function. ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-hackers)
    • Re: clock.h
      ... * Kernel interface to machine-dependent clock driver. ... that this is a header file that declares functions that are used *only* ... from a userland program, as you are trying to do. ... The reason that the DELAY() declaration seems to be in the header file, ...
      (freebsd-hackers)
    • Re: creating process
      ... Note that what you're doing here isn't "kernel level programming". ... It's just a simple userland program. ... One problem with your code (which might explain the extra characters ... If there's junk in the buffer when you read, ...
      (comp.os.linux.development.system)
    • Re: execute a user process in the kernel
      ... Anyone would like to tell me how to execute a ... >> user process or shell script in the kernel? ... Then write a kernel driver that produces output on /dev/fooctl every ... time it wants the userland program to do something. ...
      (freebsd-hackers)