函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:locks_translate_pid - translate a file_lock's fl_pid number into a namespace*@fl: The file_lock who's fl_pid should be translated*@ns: The namespace into which the pid should be translated* Used to tranlate a fl_pid into a namespace virtual pid number

函数原型:static pid_t locks_translate_pid(struct file_lock *fl, struct pid_namespace *ns)

返回类型:pid_t

参数:

类型参数名称
struct file_lock *fl
struct pid_namespace *ns
2265  如果IS_OFDLCK(fl)则返回:负1
2267  如果IS_REMOTELCK(fl)则返回:fl_pid
2274  如果ns恒等于PID-map pages start out as NULL, they get allocated upon* first use and are never deallocated. This way a low pid_max* value does not cause lots of bitmaps to be allocated, but* the scheme scales to up to 4 million PIDs, runtime.则返回:fl_pid
2277  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2278  pid等于find_pid_ns(fl_pid, & PID-map pages start out as NULL, they get allocated upon* first use and are never deallocated. This way a low pid_max* value does not cause lots of bitmaps to be allocated, but* the scheme scales to up to 4 million PIDs, runtime.)
2279  vnr等于pid_nr_ns(pid, ns)
2280  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
2281  返回:vnr
调用者
名称描述
posix_lock_to_flock
posix_lock_to_flock64
lock_get_status
locks_show