>
> > 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 [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ