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" [EMAIL PROTECTED]

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to