linux kernel - Map memory from alloc_page to the calling process address space -


i have linux device driver allocates physical memory/pages. have single ioctl, application can call, allocates physical page , maps process memory using vm_insert_pfn.

i have allocated contiguous vma based on total number of pages required application. using alloc_page() allocate physical page.

what want know is, if physical page allocated alloc_page() counted against process making ioctl or if physical page belongs driver after mapping pre-allocated vma. if not how can achieve this?

i using flags gfp_movable|gfp_highuser.


Comments

Popular posts from this blog

python - argument must be rect style object - Pygame -

c++ - Qt setGeometry: Unable to set geometry -

php - Zend Framework / Skeleton-Application / Composer install issue -