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

# snd\_pcm\_lib\_get\_vmalloc\_page(9)

map vmalloc buffer offset to page struct

## NAME

snd\_pcm\_lib\_get\_vmalloc\_page - map vmalloc buffer offset to page struct

## SYNOPSIS

**struct page \* snd\_pcm\_lib\_get\_vmalloc\_page(struct snd\_pcm\_substream \*** *substream***, unsigned long** *offset***);**

## ARGUMENTS

*substream*

the substream with a buffer allocated by **snd\_pcm\_lib\_alloc\_vmalloc\_buffer**

*offset*

offset in the buffer

## DESCRIPTION

This function is to be used as the page callback in the PCM ops.

## RETURN

The page struct, or **NULL** on failure.

## COPYRIGHT
