We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b2f26 commit 7865dfbCopy full SHA for 7865dfb
include/linux/skmsg.h
@@ -100,6 +100,11 @@ struct sk_psock {
100
void (*saved_close)(struct sock *sk, long timeout);
101
void (*saved_write_space)(struct sock *sk);
102
void (*saved_data_ready)(struct sock *sk);
103
+ /* psock_update_sk_prot may be called with restore=false many times
104
+ * so the handler must be safe for this case. It will be called
105
+ * exactly once with restore=true when the psock is being destroyed
106
+ * and psock refcnt is zero, but before an RCU grace period.
107
+ */
108
int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock,
109
bool restore);
110
struct proto *sk_proto;
0 commit comments