Function report |
Source Code:mm\z3fold.c |
Create Date:2022-07-28 16:29:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__release_z3fold_page
Proto:static void __release_z3fold_page(struct z3fold_header *zhdr, bool locked)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct z3fold_header * | zhdr | |
bool | locked |
524 | page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr) |
525 | pool = zhdr_to_pool(zhdr) |
526 | bool is_free = true |
533 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list. |
535 | spin_unlock( & lock) |
539 | When i <= BUDDY_MASK cycle |
541 | is_free = false |
542 | Break |
545 | If Not is_free Then Atomically set a bit in memory |
547 | read_unlock( & lock) |
549 | If is_free Then kmem_cache_free(c_handle, slots) |
552 | If locked Then Unlock a z3fold page |
555 | spin_lock( & stale_lock) |
558 | spin_unlock( & stale_lock) |
Name | Describe |
---|---|
release_z3fold_page | |
release_z3fold_page_locked | |
release_z3fold_page_locked_list |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |