---
name: "sk_set_memalloc"
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_set_memalloc"
---

# sk\_set\_memalloc(9)

sets SOCK\_MEMALLOC

## NAME

sk\_set\_memalloc - sets **SOCK\_MEMALLOC**

## SYNOPSIS

**void sk\_set\_memalloc(struct sock \*** *sk***);**

## ARGUMENTS

*sk*

socket to set it on

## DESCRIPTION

Set **SOCK\_MEMALLOC** on a socket for access to emergency reserves. It's the responsibility of the admin to adjust min\_free\_kbytes to meet the requirements

## COPYRIGHT
