'\" t .\" Title: __sk_mem_schedule .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "__SK_MEM_SCHEDULE" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __sk_mem_schedule \- increase sk_forward_alloc and memory_allocated .SH "SYNOPSIS" .HP \w'int\ __sk_mem_schedule('u .BI "int __sk_mem_schedule(struct\ sock\ *\ " "sk" ", int\ " "size" ", int\ " "kind" ");" .SH "ARGUMENTS" .PP \fIsk\fR .RS 4 socket .RE .PP \fIsize\fR .RS 4 memory size to allocate .RE .PP \fIkind\fR .RS 4 allocation type .RE .SH "DESCRIPTION" .PP If kind is SK_MEM_SEND, it means wmem allocation\&. Otherwise it means rmem allocation\&. This function assumes that protocols which have memory_pressure use sk_wmem_queued as write buffer accounting\&. .SH "COPYRIGHT" .br