'\" t .\" Title: skcipher_request_set_callback .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Programming Interface .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SKCIPHER_REQUEST_SET" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Programming Interface" .\" ----------------------------------------------------------------- .\" * 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" skcipher_request_set_callback \- set asynchronous callback function .SH "SYNOPSIS" .HP \w'void\ skcipher_request_set_callback('u .BI "void skcipher_request_set_callback(struct\ skcipher_request\ *\ " "req" ", u32\ " "flags" ", crypto_completion_t\ " "compl" ", void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIreq\fR .RS 4 request handle .RE .PP \fIflags\fR .RS 4 specify zero or an ORing of the flags CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and increase the wait queue beyond the initial maximum size; CRYPTO_TFM_REQ_MAY_SLEEP the request processing may sleep .RE .PP \fIcompl\fR .RS 4 callback function pointer to be registered with the request handle .RE .PP \fIdata\fR .RS 4 The data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use\&. Here, the caller can provide a reference to memory the callback function can operate on\&. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer\&. The callback function can access the memory via the \(lqdata\(rq field in the crypto_async_request data structure provided to the callback function\&. .RE .SH "DESCRIPTION" .PP This function allows setting the callback function that is triggered once the cipher operation completes\&. .PP The callback function is registered with the skcipher_request handle and must comply with the following template .PP void callback_function(struct crypto_async_request *req, int error) .SH "AUTHORS" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .PP \fBMarek Vasut\fR <\&marek@denx.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br