Name

sk_state_store — update sk->sk_state

Synopsis

void sk_state_store (struct sock * sk,
 int newstate);
 

Arguments

struct sock * sk

socket pointer

int newstate

new state

Description

Paired with sk_state_load. Should be used in contexts where state change might impact lockless readers.