函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rylock for reading -- returns 1 if successful, 0 if contention

函数原型:int down_read_trylock(struct rw_semaphore *sem)

返回类型:int

参数:

类型参数名称
struct rw_semaphore *sem
1520  ret等于__down_read_trylock(sem)
1522  如果ret恒等于1则rwsem_acquire_read( & dep_map, 0, 1, _RET_IP_)
1524  返回:ret
调用者
名称描述
stack_map_get_build_id_offset
shrink_slab_memcg
shrink_slabshrink_slab - shrink slab caches*@gfp_mask: allocation context*@nid: node whose slab caches to target*@memcg: memory cgroup whose slab caches to target*@priority: the reclaim priority* Call the shrink functions to age shrinkable caches
vm_insert_pagevm_insert_page - insert single page into user vma*@vma: user vma to map to*@addr: target user address of this page*@page: source kernel page* This allows drivers to insert individual pages they've allocated* into a user vma.
print_vma_addrPrint the name of a VMA.
mm_take_all_locksThis operation locks against the VM for all pte/vma/mm related* operations that could ever happen on a certain mm. This includes* vmtruncate, try_to_unmap, and all page faults.* The caller must take the mmap_sem in write mode before calling
mm_drop_all_locksThe mmap_sem cannot be released by the caller until* mm_drop_all_locks() returns.
page_lock_anon_vma_readSimilar to page_get_anon_vma() except it locks the anon_vma.* Its a little more complex as it tries to keep the fast path to a single* atomic op -- the trylock. If we fail the trylock, we fall back to getting a
khugepaged_scan_mm_slot
mem_cgroup_move_charge
shrink_dcache_for_umountdestroy the dentries attached to a superblock on unmounting
try_to_writeback_inodes_sbry_to_writeback_inodes_sb - try to start writeback if none underway*@sb: the superblock*@reason: reason why some writeback work was initiated* Invoke __writeback_inodes_sb_nr if no writeback is currently underway.
dquot_disableTurn quota off on a device. type == -1 ==> quotaoff for all types (umount)
dquot_load_quota_sb
dquot_resumeReenable quotas on remount RW
oom_reap_task_mmReaps the address space of the give task.* Returns true on success and false if none or part of the address space* has been reclaimed and the caller should retry later.
trylock_superrylock_super - try to grab ->s_umount shared*@sb: reference we are trying to grab* Try to prevent fs shutdown. This is used in places where we* cannot take an active reference but we need to ensure that the