Re: pid_task function fails to execute

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

 




I found the issue:

one has to pass arguments to pid_task as: pid_task(find_get_pid(<pid found using sys_getpid in userspace>) , PIDTYPE_PID);

I am trying to understand how the pid value using find_get_pid function differs from the pid found in the userspace. It seems that they are different and due to that kernel get exception.

Feel free to share comments.

Thank you,
Ankur.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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