---
name: "d_alloc_root"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/d_alloc_root"
---

# d\_alloc\_root(9)

allocate root dentry

## NAME

d\_alloc\_root - allocate root dentry

## SYNOPSIS

**struct dentry \* d\_alloc\_root(struct inode \*** *root\_inode***);**

## ARGUMENTS

*root\_inode*

inode to allocate the root for

## DESCRIPTION

Allocate a root (“/”) dentry for the inode given. The inode is instantiated and returned. **NULL** is returned if there is insufficient memory or the inode passed is **NULL**.

## COPYRIGHT
