Re: Getting virtual address

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

 



>
> > On the other hand, in my logic I have to sleep. So I can do two things
> >
> >  1. kmap_atomic
> >     copy all the data and
> >    kumap_atomic
> >
> >    while (not all data send)
> >        send data using my driver ...
> >
> > or
> >
> > 2.
> >   while (not all data send)
> >       {
> >        kmap_atomic
> >        copy only needed amount of data
> >        kunmap_atomic
> >        send data using my driver
> >       }
> >
According to this article:

http://kerneltrap.org/node/2450/print

kmap() can only be used if sleep is anticipated, and kmap_atomic() if
there is no sleeping.   Is that correct?   I did not check the source
code yet.   So the logic above should use kmap() instead?

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