Linux Kernel
3.7.1
|
#include <linux/syscalls.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/kmod.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
Go to the source code of this file.
Functions | |
void | get_filesystem (struct file_system_type *fs) |
void | put_filesystem (struct file_system_type *fs) |
int | register_filesystem (struct file_system_type *fs) |
EXPORT_SYMBOL (register_filesystem) | |
int | unregister_filesystem (struct file_system_type *fs) |
EXPORT_SYMBOL (unregister_filesystem) | |
SYSCALL_DEFINE3 (sysfs, int, option, unsigned long, arg1, unsigned long, arg2) | |
int __init | get_filesystem_list (char *buf) |
struct file_system_type * | get_fs_type (const char *name) |
EXPORT_SYMBOL (get_fs_type) | |
EXPORT_SYMBOL | ( | register_filesystem | ) |
EXPORT_SYMBOL | ( | unregister_filesystem | ) |
EXPORT_SYMBOL | ( | get_fs_type | ) |
void get_filesystem | ( | struct file_system_type * | fs | ) |
Definition at line 36 of file filesystems.c.
Definition at line 203 of file filesystems.c.
|
read |
Definition at line 269 of file filesystems.c.
void put_filesystem | ( | struct file_system_type * | fs | ) |
Definition at line 41 of file filesystems.c.
int register_filesystem | ( | struct file_system_type * | fs | ) |
register_filesystem - register a new filesystem : the file system structure
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.
Definition at line 69 of file filesystems.c.
Definition at line 183 of file filesystems.c.
int unregister_filesystem | ( | struct file_system_type * | fs | ) |
unregister_filesystem - unregister a file system : filesystem to unregister
Remove a file system that was previously successfully registered with the kernel. An error is returned if the file system is not found. Zero is returned on a success.
Once this function has returned the &struct file_system_type structure may be freed or reused.
Definition at line 101 of file filesystems.c.