Re: Please Help me in the Basics...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Fawaad, Sarith...

> I am considering you are talking about user space
> applications/process ! AFAIK you can't access RAM content outside the
> process address space (user space processes). You can
> communicate/transfer data from one process/program to another through
> IPC mechanisms but can't access one process directly from other
> process. (CMIIW)

How about, studying ptrace() usage? "man ptrace" and look at 
PTRACE_PEEKTEXT, PTRACE_PEEKDATA, PTRACE_PEEKUSR, 
PTRACE_POKETEXT, PTRACE_POKEDATA, PTRACE_POKEUSR. 

> By specifying O_DIRECT flag (I think while opening the file), you
> actually tells kernel to do direct IO, hence by-passing  buffer cache
> .....
or without using any libc API, try "man raw". Thanks to EricB and Rene 
hermant on #kernelnewbies IRC forum for showing me that.

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux