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

# new\_inode(9)

obtain an inode

## NAME

new\_inode - obtain an inode

## SYNOPSIS

**struct inode \* new\_inode(struct super\_block \*** *sb***);**

## ARGUMENTS

*sb*

superblock

## DESCRIPTION

Allocates a new inode for given superblock. The default gfp\_mask for allocations related to inode-\>i\_mapping is GFP\_HIGHUSER\_MOVABLE. If HIGHMEM pages are unsuitable or it is known that pages allocated for the page cache are not reclaimable or migratable, **mapping\_set\_gfp\_mask** must be called with suitable flags on the newly created inode's mapping

## COPYRIGHT
