Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-28 13:21:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:btf_get_fd_by_id

Proto:int btf_get_fd_by_id(u32 id)

Type:int

Parameter:

TypeParameterName
u32id
4252  _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
4253  btf = dr_find() - Return pointer for given ID
4254  If Not btf || Not _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then btf = ERR_PTR( - ENOENT)
4256  _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()
4258  If IS_ERR(btf) Then Return PTR_ERR(btf)
4261  fd = __btf_new_fd(btf)
4262  If fd < 0 Then btf_put(btf)
4265  Return fd