Userspace access to low memory.

This is a discussion on Userspace access to low memory. within the Linux Programming forums, part of the Platform Specific Boards category; Can I use request_mem_region() from userspace? EDIT: Do I even need to use request_mem_region(), or can/should I just read/write /dev/mem?...

  1. #1
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065

    Userspace access to low memory.

    Can I use request_mem_region() from userspace?

    EDIT: Do I even need to use request_mem_region(), or can/should I just read/write /dev/mem?
    Last edited by Kennedy; 12-14-2006 at 11:49 AM.

  2. #2
    .
    Join Date
    Nov 2003
    Posts
    307
    Why user mode....? A user mode driver?

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    User mode program that directly access flash memory. Drivers don't work becuase of a special thing Mfg. did. Have to map it to memory a page at a time.

  4. #4
    .
    Join Date
    Nov 2003
    Posts
    307
    request_mem_region to get protected memory will not work from user mode. Besides it returns a Resource * struct.....

    Have you tried /dev/mem? you can read the memory if you know the mapping.

  5. #5
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    I need to write to a memory address.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Direct memory access?
    By RobotGymnast in forum C++ Programming
    Replies: 37
    Last Post: 01-09-2008, 11:25 AM
  3. Low Level Drive Access?
    By coldfusion244 in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2005, 07:19 AM
  4. Memory access I can't get
    By caroundw5h in forum C Programming
    Replies: 25
    Last Post: 03-04-2005, 04:42 PM
  5. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 08:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21