Skip to contentSkip to conversation

Accessing non-current process' logical address space

DISCUSSION Mike Smith 1 participant 1 message May 16, 2005

lore
Share & tools
lore

Mike Smith

author
#0 lore raw

Hi all,

I'm in the process of modifying the 2.4.28 Linux Kernel. As part of my research I’m implementing a special system call where I need to be able to read and write to another processes’ logical-address space.

Given a process (struct task_struct* P) a logical address space pointer (char* logical_address_ptr) and a value (char x) is there a way to put x into P's logical address space where logical_address_ptr points to? I have it organized so that process P is expecting the value at logical_address_ptr to be modified and P is on a wait queue until it gets modified.

I know about all the *_user macros in include/asm-i386/uaccess.h. All of these macros act on the current process logical address space. Are there any similar functions that act on any arbitrary process’ logical address space? If not, are there any thoughts on how I should go about implementing them?

Thanks in advance,
Mike

Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html