Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_start_this_gp - Request the start of a particular grace period*@rnp_start: The leaf node of the CPU from which to start

Proto:static bool rcu_start_this_gp(struct rcu_node *rnp_start, struct rcu_data *rdp, unsigned long gp_seq_req)

Type:bool

Parameter:

TypeParameterName
struct rcu_node *rnp_start
struct rcu_data *rdp
unsigned longgp_seq_req
1156  bool ret = false
1168  raw_lockdep_assert_held_rcu_node(rnp_start)
1169  Trace-event wrapper function for trace_rcu_future_grace_period.
1170  When 1 cycle
1171  If rnp != rnp_start Then Wrappers for the rcu_node::lock acquire and release(rnp)
1179  Go to unlock_out
1181  Track furthest future GP request. = gp_seq_req
1191  Go to unlock_out
1193  If (rnp != rnp_start && cu_node tree? != NULL) Then raw_spin_unlock_rcu_node(rnp)
1195  If Not cu_node tree? Then Break
1200  If Return true if an RCU grace period is in progress. The READ_ONCE()s* permit this function to be invoked without holding the root rcu_node* structure's ->lock, but of course results can be subject to change. Then
1201  Trace-event wrapper function for trace_rcu_future_grace_period.
1202  Go to unlock_out
1204  Trace-event wrapper function for trace_rcu_future_grace_period.
1205  WRITE_ONCE(Commands for GP task. , Commands for GP task. | Need grace-period initialization. )
1206  Time of last GP request = jiffies
1207  If Not Task for grace periods. Then
1208  Trace-event wrapper function for trace_rcu_future_grace_period.
1209  Go to unlock_out
1211  trace_rcu_grace_period(Name of structure. , READ_ONCE(Grace-period sequence #. ), Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("newreq"))
1212  ret = true
1213  unlock_out :
1215  If ULONG_CMP_LT(gp_seq_req, Track furthest future GP request. ) Then
1216  Track furthest future GP request. = Track furthest future GP request.
1217  Track furthest future GP request. = Track furthest future GP request.
1219  If rnp != rnp_start Then raw_spin_unlock_rcu_node(rnp)
1221  Return ret
Caller
NameDescribe
rcu_accelerate_cbsIf there is room, assign a ->gp_seq number to any callbacks on this* CPU that have not already been assigned