函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ip6_fib.h Create Date:2022-07-27 20:42:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i, unsigned int *cookie)

返回类型:bool

参数:

类型参数名称
const struct fib6_info *f6i
unsigned int *cookie
274  bool status = false
276  fn等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(fib6_node)
278  如果fn
279  cookie等于fn_sernum
281  smp_rmb()
282  status = true
285  返回:status
调用者
名称描述
rt6_get_cookie