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

# ahash\_request\_alloc(9)

allocate request data structure

## NAME

ahash\_request\_alloc - allocate request data structure

## SYNOPSIS

**struct ahash\_request \* ahash\_request\_alloc(struct crypto\_ahash \*** *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 ahash message digest API calls. During the allocation, the provided ahash 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
