__init, __openfirmware, etc...
Benjamin Herrenschmidt
bh40 at calva.net
Sun Jan 3 02:24:51 EST 1999
Hi all !
Could someone explain me how those directive (__init, __openfirmware,
__pmac, ...) works in the kernel ? I guess those are directive for the
linker, and I also guess that __init marked sections will be removed from
memory after kernel initialisation, but what are the other ones ?
I ask this because I added a couple of ioctl to via-pmu (*), and as soon
as I added calls to get_user and put_user to the function, the kernel
refused to link. if I remove the __openfirmware directive from the ioctl
function, then it links fine.
(*) Cort, I have backlight control working on wallstreet, those ioctls
are for allowing user-space control of it too, I think you can remove
your stuff from via-pmu.c. I'll send you patches as soon as I have
cleaned them up a little bit, it's not urgent for 2.2.
--
E-Mail: <mailto:bh40 at calva.net>
BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]
More information about the Linuxppc-dev
mailing list