2023-07-28 18:20:44 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _TRACEFS_INTERNAL_H
|
|
|
|
#define _TRACEFS_INTERNAL_H
|
|
|
|
|
2023-07-28 18:20:46 +00:00
|
|
|
enum {
|
|
|
|
TRACEFS_EVENT_INODE = BIT(1),
|
|
|
|
};
|
|
|
|
|
2023-07-28 18:20:44 +00:00
|
|
|
struct tracefs_inode {
|
|
|
|
unsigned long flags;
|
|
|
|
void *private;
|
|
|
|
struct inode vfs_inode;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct tracefs_inode *get_tracefs(const struct inode *inode)
|
|
|
|
{
|
|
|
|
return container_of(inode, struct tracefs_inode, vfs_inode);
|
|
|
|
}
|
2023-07-28 18:20:45 +00:00
|
|
|
|
|
|
|
struct dentry *tracefs_start_creating(const char *name, struct dentry *parent);
|
|
|
|
struct dentry *tracefs_end_creating(struct dentry *dentry);
|
|
|
|
struct dentry *tracefs_failed_creating(struct dentry *dentry);
|
|
|
|
struct inode *tracefs_get_inode(struct super_block *sb);
|
2023-07-28 18:20:49 +00:00
|
|
|
struct dentry *eventfs_start_creating(const char *name, struct dentry *parent);
|
|
|
|
struct dentry *eventfs_failed_creating(struct dentry *dentry);
|
|
|
|
struct dentry *eventfs_end_creating(struct dentry *dentry);
|
2023-07-28 18:20:48 +00:00
|
|
|
void eventfs_set_ef_status_free(struct dentry *dentry);
|
|
|
|
|
2023-07-28 18:20:44 +00:00
|
|
|
#endif /* _TRACEFS_INTERNAL_H */
|