Gavin, ioctl is also quicker to do but it needs you to implement a character driver + a user space utility to issue ioctl command to kernel. Relatively I find it much faster with procfs.
Gustavo: Well I have not tried much with process as such, you can dig into its address space mapping and print information about its various memory areas (type of mapping), you can access its stack, heap, page tables, ofcourse you need to learn some memory management concepts too. Thanks, Rajat On Wed, Oct 27, 2010 at 6:19 AM, Gavin Guo <[email protected]> wrote: > 2010/10/27 Gustavo Silva <[email protected]>: > > Hello my friends, > > > > At this moment I'm reading the Process management chapter of Linux > > Kernel Development Third edition so I'm thinking about some exercises > > in order to get the most out of the lecture. > > I'm thinking about to implement a System call that receives a Process > > ID as input and gives as output all the parents of the process. So > > once I have the syscall I will implement a simple user-space program > > to interact with the syscall. > > why not write a ioctl driver to implement such program?? > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to [email protected] > Please read the FAQ at http://kernelnewbies.org/FAQ > >
