函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb_cgroup.c Create Date:2022-07-27 17:51:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hugetlb_lock will make sure a parallel cgroup rmdir won't happen* when we migrate hugepages

函数原型:void hugetlb_cgroup_migrate(struct page *oldhpage, struct page *newhpage)

返回类型:void

参数:

类型参数名称
struct page *oldhpage
struct page *newhpage
419  h等于page_hstate(oldhpage)
421  如果hugetlb_cgroup_disabled()则返回
424  VM_BUG_ON_PAGE(!PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details., oldhpage)
425  加自旋锁
426  h_cg等于hugetlb_cgroup_from_page(oldhpage)
427  set_hugetlb_cgroup(oldhpage, NULL)
430  set_hugetlb_cgroup(newhpage, h_cg)
431  链表项移动到头部
432  自旋锁解锁
433  返回
调用者
名称描述
move_hugetlb_state