Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sk_eat_skb

Proto:static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)

Type:void

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
2461  __skb_unlink(skb, & sk_receive_queue)
2462  If static_branch_unlikely( & sk_eat_skb - Release a skb if it is no longer needed*@sk: socket to eat this skb from*@skb: socket buffer to eat* This routine must be called with interrupts disabled or with the socket* locked so that the sk_buff queue operation is ok.) && Not sk_rx_skb_cache Then
2464  sk_rx_skb_cache = skb
2465  skb_orphan - orphan a buffer*@skb: buffer to orphan* If a buffer currently has an owner then we call the owner's* destructor function and make the @skb unowned. The buffer continues* to exist but is no longer charged to its former owner.
2466  Return
2468  private function