---
name: "sk_state_store"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sk_state_store"
---

# sk\_state\_store(9)

update sk-\>sk\_state

## NAME

sk\_state\_store - update sk-\>sk\_state

## SYNOPSIS

**void sk\_state\_store(struct sock \*** *sk***, int** *newstate***);**

## ARGUMENTS

*sk*

socket pointer

*newstate*

new state

## DESCRIPTION

Paired with **sk\_state\_load**. Should be used in contexts where state change might impact lockless readers.

## COPYRIGHT
