AUDIT\_NAME\_TO\_FSTYPE(3) Linux Audit API AUDIT\_NAME\_TO\_FSTYPE(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

```
int audit_name_to_fstype(const char *name);
```

# [DESCRIPTION](#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](#RETURN_VALUE)

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

# [SEE ALSO](#SEE_ALSO)

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

# [AUTHOR](#AUTHOR)

Steve Grubb

Mar 2022 Red Hat

---

Document: audit_name_to_fstype(3) from audit 4.2.1-r4 (Chainguard OS)
Source: https://github.com/linux-audit/audit-userspace
