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

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

 



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. I cant
> figure out

some dma are initiated from the halve of interrupt, which may not be
associated with a valid task context.

> the reason for this strange behaviour. Is there a better way to find
> out  who actually initiated the IO transfer which is using the dma_ops
> functions. Can anybody please help me in this regard.

WARN_ON() it and check the stack trace.

> thanking you
>
> Devvrat


-- 
This space was intended to be left blank.


--
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