函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically

函数原型:int __sched mutex_trylock(struct mutex *lock)

返回类型:int

参数:

类型参数名称
struct mutex *lock
1418  locked等于Actual trylock that will work on any unlocked state.
1419  如果lockedmutex_acquire( & dep_map, 0, 1, _RET_IP_)
1422  返回:locked
调用者
名称描述
ww_test_normal
mutex_trylock_recursive
enter_stater_state - Do common work needed to enter system sleep state.*@state: System sleep state to enter.* Make sure that no one else is trying to put the system into a sleep state.* Fail if that's not the case. Otherwise, prepare for system suspend, make the
snapshot_ioctl
rcu_torture_boost
__crash_kexecNo panic_cpu check version of crash_kexec(). This function is called* only when panic_cpu holds the current CPU number; this is the only CPU* which processes crash_kexec routines.
kernel_kexecMove into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error.
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4
SYSCALL_DEFINE5
try_stop_cpusry_stop_cpus - try to stop multiple cpus*@cpumask: cpus to stop*@fn: function to execute*@arg: argument to @fn* Identical to stop_cpus() except that it fails with -EAGAIN if* someone else is already using the facility
stop_machine_from_inactive_cpustop_machine_from_inactive_cpu - stop_machine() from inactive CPU*@fn: the function to run*@data: the data ptr for the @fn()*@cpus: the cpus to run the @fn() on (NULL = any online cpu)* This is identical to stop_machine() but can be called from a CPU which
dump_unreclaimable_slab
try_purge_vmap_area_lazyKick off a purge of the outstanding lazy areas. Don't bother if somebody* is already purging.
drain_all_pagesSpill all the per-cpu pages from all CPUs back into the buddy allocator.* When zone parameter is non-NULL, spill just the single zone's pages.* Note that this can be extremely slow as the draining happens in a workqueue.
__alloc_pages_may_oom
cache_reapache_reap - Reclaim memory from caches
drain_all_stockDrains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.
aio_migratepage
pagefault_out_of_memoryThe pagefault handler calls here because it is out of memory, so kill a* memory-hogging task. If oom_lock is held by somebody else, a parallel oom* killing is already in progress so do nothing.
exp_funnel_lockFunnel-lock acquisition for expedited grace periods
tomoyo_gc_threadmoyo_gc_thread - Garbage collector thread function.*@unused: Unused.* Returns 0.
__d_unaliasThis helper attempts to cope with remotely renamed directories* It assumes that the caller is already holding* Note: If ever the locking in lock_rename() changes, then please* remember to update this too...