Accessing physical memory from kernel module

From: Frank Benoit (nospam_at_xyz.com)
Date: 07/23/03


Date: Wed, 23 Jul 2003 22:44:34 +0200

Hi

I am working with an Arm. It has several Chip Select Lines. I am working
on a kernel module, using RTAI.

>From User Space I can use open("/dev/mem", O_RDWR | O_SYNC) and mmap to
access the memory for the CS Lines.

How can I do that in kernel Space?

Thank Frank
benoit at tionex de



Relevant Pages

  • Re: Large array in KVM
    ... I'm working on a kernel module that needs to maintain a large ... Could using a memory-mapped file help? ... a process that maps a large file into memory, ... which means a dynamically-allocated syscall via ...
    (freebsd-hackers)
  • Re: Memory testing in a kernel thread
    ... > Here is my first attempt at a kernel module for testing memory: ... > offline for hours or even days running memtest86. ... I wrote `burnBX` and later `burnMMX` as userland pgms to very ...
    (comp.os.linux.development.system)
  • [PATCH 1/2] module.c: fix module loading failure of large modules (take 2)
    ... When creating the final layout of a kernel module in memory, ... module loader to reserve some additional memory in front of a given section. ... /* Allocator used for allocating struct module, ... return ret; ...
    (Linux-Kernel)
  • [PATCH 1/2] module.c: fix module loading failure of large modules
    ... When creating the final layout of a kernel module in memory, ... module loader to reserve some additional memory behind a given section. ... /* Allocator used for allocating struct module, ... return ret; ...
    (Linux-Kernel)
  • Re: copy-on-write anonymous memory?
    ... is it possible to create a memory object that represents ... Then I pass the addr to the user space, ... I have created a kernel module that stores references to ... that memory area should create a shadow object. ...
    (freebsd-hackers)