vm_insert_page man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

VM_INSERT_PAGE(9)	  Memory Management in Linux	     VM_INSERT_PAGE(9)

NAME
       vm_insert_page - insert single page into user vma

SYNOPSIS
       int vm_insert_page(struct vm_area_struct * vma, unsigned long addr,
			  struct page * page);

ARGUMENTS
       vma
	   user vma to map to

       addr
	   target user address of this page

       page
	   source kernel page

DESCRIPTION
       This allows drivers to insert individual pages they´ve allocated into a
       user vma.

       The page has to be a nice clean _individual_ kernel allocation. If you
       allocate a compound page, you need to have marked it as such
       (__GFP_COMP), or manually just split the page up yourself (see
       split_page).

       NOTE! Traditionally this was done with “remap_pfn_range” which took an
       arbitrary page protection parameter. This doesn´t allow that. Your vma
       protection will have to be set up correctly, which means that if you
       want a shared writable mapping, you´d better ask for a shared writable
       mapping!

       The page does not need to be reserved.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013		     VM_INSERT_PAGE(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net