Re: Can you use current->pid at the driver level

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

 





On 6/7/07, Prasad Joshi <prasadjoshi124@xxxxxxxxx> wrote:
Hi,

On Linux or any UNIX platform process with PID 1 is init process and process with PID 0 is a swapper process.


Yes, i got it but i still cant understand what work does it do. Why is it initiating so many DMA transfers.




Check the same for process having PID 0 use command ps -p0


its says process id out of range.

On 6/7/07, Devvrat Tripathi <tripathidevvrat@xxxxxxxxx> wrote:


On 6/7/07, Devvrat Tripathi < tripathidevvrat@xxxxxxxxx> wrote:


On 6/7/07, Erik Mouw <mouw@xxxxxxxxxxxx > wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jun 07, 2007 at 12:02:03PM +0200, Devvrat Tripathi wrote:
> I wanted to ask you if current pid will work at the driver level. i used in
> pci-gart.c to get the processes which are using DMA transfer but stragely i
> get 0 sometimes and sometime proper pid's.

0 is a proper pid as well, it's the "swapper" task.


Erik

what is a "Swapper" task. Can you explain what work does it do and why does it do so many IO transfers.

devvrat

Also this is what wikipedia says of idle task.

" In Unix-like operating systems such as Linux, the idle task has process ID zero, and never exits.  "

but the results which i am getting show that this task does exist and is initiating so many DMA transfers. what can be the possible reason for it or is it that i am missing something?

devvrat



[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