Re: Copy data from kernel to user space memory
From: Dag-Erling Smørgrav (des_at_des.no)
Date: 09/24/04
- Previous message: Jeremie Le Hen: "Re: STRIP in /usr/share/mk/"
- In reply to: Niels Heinen: "Copy data from kernel to user space memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Niels Heinen <niels.heinen@gmail.com> Date: Fri, 24 Sep 2004 12:04:06 +0200
Niels Heinen <niels.heinen@gmail.com> writes:
> The module buffers packets and currently copies it into user memory
> when its system call interface is used. At the moment my user space
> application is the one that allocates the memory. I want the memory
> to be allocated by the module in order to make things more efficient.
You can't do that. The kernel allocates address space, not memory.
It is up to the application to manage its address space as it sees
fit.
DES
-- Dag-Erling Smørgrav - des@des.no _______________________________________________ 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"
- Previous message: Jeremie Le Hen: "Re: STRIP in /usr/share/mk/"
- In reply to: Niels Heinen: "Copy data from kernel to user space memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [git pull] kgdb light, v5
... Why not let kgdb look at user memory? ... down into user-space and overwrite
user-space memory and not know what ... (Linux-Kernel) - Re: Phillips TV does not hold default channel
... and not through the decoder box (dish box). ... the default user memory
will be re-set to the default. ... And with so little to watch, I usually only watch the PBS
channel anyway. ... (sci.electronics.repair) - Re: Phillips TV does not hold default channel
... and not through the decoder box (dish box). ... the default user memory
will be re-set to the default. ... And with so little to watch, I usually only watch the PBS
channel anyway. ... (sci.electronics.repair) - Re: Garmin Quest 2 - All of North America Built In? How is this possible?
... POIs? ... I guess that's what the user memory could be used for. ...
Of course if you're going on short trips or repeated trips to the same ... (sci.geo.satellite-nav) - get_user_pages() still broken in 2.6
... Function get_user_pagesis supposed to lock user memory. ... Calls our driver,
which issues a get_user_pagescall for one page. ... (Linux-Kernel)