#include <linux/signal.h>#include <linux/sched.h>#include <linux/kernel.h>#include <linux/errno.h>#include <linux/string.h>#include <linux/types.h>#include <linux/ptrace.h>#include <linux/mman.h>#include <linux/mm.h>#include <linux/swap.h>#include <linux/smp.h>Include dependency graph for small_page.c:

Go to the source code of this file.
Defines | |
| #define | SMALL_ALLOC_SIZE (1 << SMALL_ALLOC_SHIFT) |
| #define | NR_BLOCKS (PAGE_SIZE / SMALL_ALLOC_SIZE) |
| #define | BLOCK_MASK ((1 << NR_BLOCKS) - 1) |
| #define | USED(pg) ((atomic_read(&(pg)->count) >> 8) & BLOCK_MASK) |
| #define | SET_USED(pg, off) (atomic_read(&(pg)->count) |= 256 << off) |
| #define | CLEAR_USED(pg, off) (atomic_read(&(pg)->count) &= ~(256 << off)) |
| #define | ALL_USED BLOCK_MASK |
| #define | IS_FREE(pg, off) (!(atomic_read(&(pg)->count) & (256 << off))) |
| #define | SM_PAGE_PTR(page, block) |
Functions | |
| static void | clear_page_links (unsigned long page) |
| static void | set_page_links_prev (unsigned long page, unsigned long prev) |
| static void | set_page_links_next (unsigned long page, unsigned long next) |
Variables | |
| static unsigned long | small_page_ptr |
| static unsigned char | offsets [1<< NR_BLOCKS] |
| unsigned long NAME( | get_page )(int priority) |
| void NAME( | free_page )(unsigned long spage) |
|
|
Definition at line 41 of file small_page.c. |
|
|
Definition at line 36 of file small_page.c. |
|
|
Definition at line 40 of file small_page.c. |
|
|
Definition at line 42 of file small_page.c. Referenced by fat_add_entries(), fat_dir_empty(), fat_fill_inode(), fat_readdirx(), fat_search_long(), vfat_create_shortname(), and vfat_valid_longname(). |
|
|
Definition at line 35 of file small_page.c. Referenced by clear_page_links(), set_page_links_next(), and set_page_links_prev(). |
|
|
Definition at line 39 of file small_page.c. |
|
|
Value: ((struct free_small_page *)((page) + \ ((block) << SMALL_ALLOC_SHIFT))) Definition at line 43 of file small_page.c. Referenced by clear_page_links(), set_page_links_next(), and set_page_links_prev(). |
|
|
Definition at line 34 of file small_page.c. |
|
|
Definition at line 38 of file small_page.c. Referenced by eata_abort(), eata_pio_abort(), eata_pio_queue(), eata_queue(), set_page_links_next(), and set_page_links_prev(). |
|
|
Definition at line 84 of file small_page.c. References i, free_small_page::next, NR_BLOCKS, free_small_page::prev, and SM_PAGE_PTR. |
|
||||||||||||
|
Definition at line 113 of file small_page.c. References i, MAP_NR, mask, mem_map, free_small_page::next, NR_BLOCKS, SM_PAGE_PTR, and USED. |
|
||||||||||||
|
Definition at line 95 of file small_page.c. References i, MAP_NR, mask, mem_map, NR_BLOCKS, free_small_page::prev, SM_PAGE_PTR, and USED. |
|
|
|
Definition at line 131 of file small_page.c. Referenced by do_ptrace(), get_int(), get_long(), put_int(), and put_long(). |
|
|
Initial value: {
0,
1,
0,
2,
}
Definition at line 63 of file small_page.c. Referenced by ext2_bmap(), ext2_getblk(), and sysv_read_super(). |
|
|
Definition at line 61 of file small_page.c. |