UIO: mapping UIO_MEM_LOGICAL fails for size < PAGE_SIZE

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

 



I'm playing around with UIO, and got problems getting the following to work:

dev_info.mem[0].memtype = UIO_MEM_LOGICAL;
dev_info.mem[0].addr = (unsigned long) kmalloc(16, GFP_KERNEL);
dev_info.mem[0].size = 16;

If I increase size to PAGE_SIZE, everything works as expected.

Is this a bug or just not documented? Does size have to be a multiple
of PAGE_SIZE?

Christoph Gysin
-- 
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3

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