RE: Getting virtual address

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

 



> Either that or somehow arrange that you'll never be passed a highmem page to 
> begin with as highmem pages by their nature of not being permanently mapped 
> do not _have_ a virtual address until after they're mapped.

How would you arrange so I am passed a higmem page ?

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
      }

If 2 going to be slow because of mapping / unmapping multiple times ? (1 completes buffer free logic in my driver, that's why thinging about 2.)
_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007
--
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