From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:42:03 +0000 Subject: [PATCH] disable pwm7 --- kernel/fs/incfs/vfs.h | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/kernel/fs/incfs/vfs.h b/kernel/fs/incfs/vfs.h index eaa490e..79fdf24 100644 --- a/kernel/fs/incfs/vfs.h +++ b/kernel/fs/incfs/vfs.h @@ -6,8 +6,28 @@ #ifndef _INCFS_VFS_H #define _INCFS_VFS_H +extern const struct file_operations incfs_file_ops; +extern const struct inode_operations incfs_file_inode_ops; + void incfs_kill_sb(struct super_block *sb); struct dentry *incfs_mount_fs(struct file_system_type *type, int flags, const char *dev_name, void *data); +int incfs_link(struct dentry *what, struct dentry *where); +int incfs_unlink(struct dentry *dentry); + +static inline struct mount_info *get_mount_info(struct super_block *sb) +{ + struct mount_info *result = sb->s_fs_info; + + WARN_ON(!result); + return result; +} + +static inline struct super_block *file_superblock(struct file *f) +{ + struct inode *inode = file_inode(f); + + return inode->i_sb; +} #endif -- Gitblit v1.6.2