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

# find\_inode\_number(9)

check for dentry with name

## NAME

find\_inode\_number - check for dentry with name

## SYNOPSIS

**ino\_t find\_inode\_number(struct dentry \*** *dir***, struct qstr \*** *name***);**

## ARGUMENTS

*dir*

directory to check

*name*

Name to find.

## DESCRIPTION

Check whether a dentry already exists for the given name, and return the inode number if it has an inode. Otherwise 0 is returned.

This routine is used to post-process directory listings for filesystems using synthetic inode numbers, and is necessary to keep **getcwd** working.

## COPYRIGHT
