sk_page_frag(9) return an appropriate page_frag

SYNOPSIS

struct page_frag * sk_page_frag(struct sock * sk);

ARGUMENTS

sk

socket

DESCRIPTION

If socket allocation mode allows current thread to sleep, it means its safe to use the per task page_frag instead of the per socket one.

COPYRIGHT