Re: Asking for process management exercise suggestions

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

 



2010/10/27 Rajat Sharma <fs.rajat@xxxxxxxxx>:
> 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.
>

Yes I think I will try creating entries to read and write in the /proc
as a first step. Once I feel comfortable with the process management
related topics I will move to the process scheduling and memory
management.

Thank you very much for pointing me to the procfs direction as an easy
and fast way to test and experiment with the kernel Rajat. =)

>
> On Wed, Oct 27, 2010 at 6:19 AM, Gavin Guo <tuffkidtt@xxxxxxxxx> wrote:
>>
>> 2010/10/27 Gustavo Silva <silvagustavosilva@xxxxxxxxx>:
>> > 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??
>>

 Of course once I finish my experiments with process management and
procfs I also will implement the solution you propose Gavin.
I have been playing with character drivers as well and I think thats a
good next-step in the process of getting familiar with the kernel.
Thank you very much for the recomendation. =)

Best regards to everybody,
Gustavo Silva

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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