Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ip6_fib.h Create Date:2022-07-28 19:12:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Function to safely get fn->sernum for passed in rt* and store result in passed in cookie.* Return true if we can get cookie safely* Return false if not

Proto:static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, unsigned int *cookie)

Type:bool

Parameter:

TypeParameterName
const struct fib6_info *f6i
unsigned int *cookie
274  bool status = false
276  fn = fetch RCU-protected pointer for dereferencing(fib6_node)
278  If fn Then
279  cookie = fn_sernum
281  smp_rmb()
282  status = true
285  Return status