---
name: "ablkcipher_request_alloc"
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/ablkcipher_request_alloc"
---

# ablkcipher\_request\_alloc(9)

allocate request data structure

## NAME

ablkcipher\_request\_alloc - allocate request data structure

## SYNOPSIS

**struct ablkcipher\_request \* ablkcipher\_request\_alloc(struct crypto\_ablkcipher \*** *tfm***, gfp\_t** *gfp***);**

## ARGUMENTS

*tfm*

cipher handle to be registered with the request

*gfp*

memory allocation flag that is handed to kmalloc by the API call.

## DESCRIPTION

Allocate the request data structure that must be used with the ablkcipher encrypt and decrypt API calls. During the allocation, the provided ablkcipher handle is registered in the request data structure.

## RETURN

allocated request handle in case of success, or NULL if out of memory

## AUTHORS

**Stephan Mueller** \<smueller@chronox.de\>

Author.

**Marek Vasut** \<marek@denx.de\>

Author.

## COPYRIGHT
