---
name: "audit_name_to_fstype"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/audit_name_to_fstype"
---

# audit\_name\_to\_fstype(3)

Convert the fstype name to the numeric fstype value

## NAME

audit\_name\_to\_fstype - Convert the fstype name to the numeric fstype value

## SYNOPSIS

```
#include <libaudit.h>
```

**int audit\_name\_to\_fstype(const char** *\*name***);**

## DESCRIPTION

**audit\_name\_to\_fstype**() converts the fstype name ("debugfs" or "tracefs") to the numeric fstype value (0x64626720 or 0x74726163). *name* is the fstype name.

## RETURN VALUE

Returns -1 if an name occurs; otherwise, the return value is the numeric fstype value.

## SEE ALSO

[**audit\_fstype\_to\_name**(3)](/audit_fstype_to_name/3.md),

## AUTHOR

Steve Grubb
