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

# get\_pfn\_range\_for\_nid(9)

Return the start and end page frames for a node

## NAME

get\_pfn\_range\_for\_nid - Return the start and end page frames for a node

## SYNOPSIS

**void get\_pfn\_range\_for\_nid(unsigned int** *nid***, unsigned long \*** *start\_pfn***, unsigned long \*** *end\_pfn***);**

## ARGUMENTS

*nid*

The nid to return the range for. If MAX\_NUMNODES, the min and max PFN are returned.

*start\_pfn*

Passed by reference. On return, it will have the node start\_pfn.

*end\_pfn*

Passed by reference. On return, it will have the node end\_pfn.

## DESCRIPTION

It returns the start and end page frame of a node based on information provided by **memblock\_set\_node**. If called for a node with no available memory, a warning is printed and the start and end PFNs will be 0.

## COPYRIGHT
