in_atomic() and DMA

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

 



Hi all,

I've got two questions:

1) What does it mean when the kernel is in state "atomic", i.e.
   in_atomic()==1? How does it happen and what is allowed and what is
   not there?

2) Can I say about a given virtual address whether or not it is usable
   for DMA? My function is called from different places and I want to
   know if the pointer in its parameter can be used for DMA or if I
   should copy the data to GFP_DMA-allocated space first.

Thanks in advance!

Michal Ludvig
-- 
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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