Copy data from kernel to user space memory

From: Niels Heinen (niels.heinen_at_gmail.com)
Date: 09/23/04

  • Next message: Andrey Simonenko: "Re: Copy data from kernel to user space memory"
    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"


  • Next message: Andrey Simonenko: "Re: Copy data from kernel to user space memory"

    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: MmMapLockedPages with UserMode pointer
      ... I want to reserve a large ... The PC has 32GByte of memory. ... Both the FPGA and the CPU are processing a large data set ... contiguous user space address range. ...
      (microsoft.public.development.device.drivers)
    • [PATCH 25/39] merge common parts of uaccess.
      ... * Test whether a block of memory is a valid user space address. ... * Checks if a pointer to a block of memory in user space is valid. ... * These are the main single-value transfer routines. ...
      (Linux-Kernel)