Copy data from kernel to user space memory
From: Niels Heinen (niels.heinen_at_gmail.com)
Date: 09/23/04
- Previous message: Bruce M Simpson: "Re: execute a user process in the kernel"
- Next in thread: Andrey Simonenko: "Re: Copy data from kernel to user space memory"
- Reply: Andrey Simonenko: "Re: Copy data from kernel to user space memory"
- Reply: Dag-Erling Smørgrav: "Re: Copy data from kernel to user space memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Sep 2004 11:38:28 +0200 To: freebsd-hackers@freebsd.org
Hi all,
I'm working on a kernel module that I want to use to copy packet
data, obtained trough the phil hooks, to user space memory.
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.
I'd really appriciate it if someone could explain how this should be done
Thanks in advance,
Niels
_______________________________________________
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: Bruce M Simpson: "Re: execute a user process in the kernel"
- Next in thread: Andrey Simonenko: "Re: Copy data from kernel to user space memory"
- Reply: Andrey Simonenko: "Re: Copy data from kernel to user space memory"
- Reply: Dag-Erling Smørgrav: "Re: Copy data from kernel to user space memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: + edac-new-opteron-athlon64-memory-controller-driver.patch added to -
... So we can kill the processes using that memory. ... What is the chipsets idea
of which DIMM the memory error occurred on. ... There has always been enough information
to determine the hardware ... some that are not easily accessible to user space
so a kernel driver ... (Linux-Kernel) - Re: user_to_phys() without mmap?
... |> ram, not some PCI or AGP video card), but mmap'ing from kernel space ...
|> into user space is causing large latencies and unsightly artifacts. ... | virtual
memory locations from user space, ... Directly mapping physical memory to a process
_can_, of course, be very ... (comp.os.linux.development.system) - [PATCH 2.6.9-rc1-mm4 4/6] [m32r] Update uaccess.h
... + * Test whether a block of memory is a valid user space address. ... * Context:
User context only. ... * Checks if a pointer to a block of memory in user space
is valid. ... * Returns zero on success, ... (Linux-Kernel) - Re: size_t or int for malloc-type functions?
... Some go as high as 3GB with special boot ... RedHat has a special Linux kernel
that gives just under 4GB of user address space; a bit of kernel space is still required to keep syscalls
working, ... It's mainly used by database folks, who should be moving to AMD64 now anyways (with
its 2^51 bytes of user space, currently). ... of like the old extended/expanded memory
hacks in the DOS days. ... (comp.lang.c) - RE: How to make mmaped kernel buffer non-cacheable
... I have mapped some user space memory to the kernel buffer and I wish to ensure
that the contents of both are coherent and correctly ordered. ... The dma mapping API provide
the neccessary ... (Linux-Kernel)