函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Save and compile IPv4 options, return a pointer to it

函数原型:static inline struct ip_options_rcu *tcp_v4_save_options(struct net *net, struct sk_buff *skb)

返回类型:struct ip_options_rcu

参数:

类型参数名称
struct net *net
struct sk_buff *skb
2055  opt等于opt
2056  struct ip_options_rcu * dopt = NULL
2058  如果optlen
2059  opt_size等于dopt的长度加optlen
2061  dopt等于kmalloc(opt_size, DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear)
2062  如果dopt__ip_options_echo(net, & opt, skb, opt)则
2063  kfree(dopt)
2064  dopt = NULL
2067  返回:dopt