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

# register\_filesystem(9)

register a new filesystem

## NAME

register\_filesystem - register a new filesystem

## SYNOPSIS

**int register\_filesystem(struct file\_system\_type \*** *fs***);**

## ARGUMENTS

*fs*

the file system structure

## DESCRIPTION

Adds the file system passed to the list of file systems the kernel is aware of for mount and other syscalls. Returns 0 on success, or a negative errno code on an error.

The struct file\_system\_type that is passed is linked into the kernel structures and must not be freed until the file system has been unregistered.

## COPYRIGHT
