XenevaOS
Loading...
Searching...
No Matches
pseudo_fs.h
Go to the documentation of this file.
1/*
2 * DCL pseudo_fs.h -- drm_drv.c's internal "drm" filesystem, faked.
3 *
4 * init_pseudo() returns a non-NULL dentry so drm_fs_init_fs_context()
5 * succeeds; file_system_type is defined here because mainline keeps it in
6 * <linux/fs.h>, which this tree must not edit. alloc_anon_inode() hands
7 * back a zeroed struct inode (never ERR), iput() is a deliberate no-op --
8 * struct inode has no i_count on this build and drm allocates a handful of
9 * them per device lifetime. kill_anon_super() only ever runs on unmount,
10 * which Xeneva never does for this fs.
11 */
12#ifndef _LINUX_PSEUDO_FS_H
13#define _LINUX_PSEUDO_FS_H
14
15#include <linux/fs.h>
16#include <linux/fs_context.h>
17
18struct dentry;
19struct module;
21 const char *name;
22 struct module *owner;
23 int (*init_fs_context)(struct fs_context *fc);
24 void (*kill_sb)(struct super_block *sb);
25};
26
27struct dentry *init_pseudo(struct fs_context *fc, unsigned long magic);
28void kill_anon_super(struct super_block *sb);
29
30struct inode *alloc_anon_inode(struct super_block *sb);
31void iput(struct inode *inode);
32
33#endif /* _LINUX_PSEUDO_FS_H */
struct inode * alloc_anon_inode(struct super_block *sb)
void iput(struct inode *inode)
void kill_anon_super(struct super_block *sb)
struct dentry * init_pseudo(struct fs_context *fc, unsigned long magic)
Definition pseudo_fs.h:20
const char * name
Definition pseudo_fs.h:21
void(* kill_sb)(struct super_block *sb)
Definition pseudo_fs.h:24
int(* init_fs_context)(struct fs_context *fc)
Definition pseudo_fs.h:23
struct module * owner
Definition pseudo_fs.h:22
Definition fs.h:183