Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static pid_t locks_translate_pid(struct file_lock *fl, struct pid_namespace *ns)

Type:pid_t

Parameter:

TypeParameterName
struct file_lock *fl
struct pid_namespace *ns
2265  If IS_OFDLCK(fl) Then Return -1
2267  If IS_REMOTELCK(fl) Then Return fl_pid
2274  If 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. Then Return 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  Return vnr
Caller
NameDescribe
posix_lock_to_flock
posix_lock_to_flock64
lock_get_status
locks_show