.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "ALLOC_PAGES_CURRENT" "9" "09 October 2005" "" "" .SH NAME alloc_pages_current \- Allocate pages. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct page * alloc_pages_current (unsigned int __nocast \fIgfp\fB, unsigned \fIorder\fB); \fR .SH "ARGUMENTS" .TP \fB\fIgfp\fB\fR GFP_USER user allocation, GFP_KERNEL kernel allocation, GFP_HIGHMEM highmem allocation, GFP_FS don't call back into a file system. GFP_ATOMIC don't sleep. .TP \fB\fIorder\fB\fR Power of two of allocation size in pages. 0 is a single page. .SH "DESCRIPTION" .PP Allocate a page from the kernel page pool. When not in interrupt context and apply the current process NUMA policy. Returns NULL when no page can be allocated. .PP Don't call \fBcpuset_update_current_mems_allowed\fR unless 1) it's ok to take cpuset_sem (can WAIT), and 2) allocating for current task (not interrupt). .SH "DESCRIPTION" .PP Allocate a page from the kernel page pool. When not in interrupt context and apply the current process NUMA policy. Returns NULL when no page can be allocated. .PP Don't call \fBcpuset_update_current_mems_allowed\fR unless 1) it's ok to take cpuset_sem (can WAIT), and 2) allocating for current task (not interrupt).