XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
debugfs.h File Reference
#include <linux/fs.h>
#include <linux/seq_file.h>
#include <linux/atomic.h>
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/err.h>
Include dependency graph for debugfs.h:

Go to the source code of this file.

Classes

struct  debugfs_blob_wrapper
 
struct  debugfs_reg32
 
struct  debugfs_regset32
 
struct  debugfs_u32_array
 
struct  debugfs_short_fops
 

Macros

#define DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, __is_signed)
 
#define DEFINE_DEBUGFS_ATTRIBUTE(__fops, __get, __set, __fmt)    DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, false)
 
#define DEFINE_DEBUGFS_ATTRIBUTE_SIGNED(__fops, __get, __set, __fmt)    DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, true)
 
#define debugfs_create_file_aux_num(name, mode, parent, data, n, fops)
 
#define debugfs_get_aux_num(f)   (unsigned long)debugfs_get_aux(f)
 

Typedefs

typedef struct vfsmount *(* debugfs_automount_t) (struct dentry *, void *)
 

Functions

void * debugfs_get_aux (const struct file *file)
 
: a pointer to a string containing the name of the file to create.

debugfs_create_xul - create a debugfs file that is used to read and write an unsigned long value, formatted in hexadecimal

@mode: the permission that the file should have @parent: a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is NULL, then the file will be created in the root of the debugfs filesystem. @value: a pointer to the variable that the file should read to and write from.

Variables

struct dentry * arch_debugfs_dir
 
static int const char * fmt
 

Macro Definition Documentation

◆ debugfs_create_file_aux_num

#define debugfs_create_file_aux_num (   name,
  mode,
  parent,
  data,
  n,
  fops 
)
Value:
debugfs_create_file_aux(name, mode, parent, data, \
(void *)(unsigned long)n, fops)
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
struct kobject * parent
Definition kobject.h:91
void * data
Definition kthread.h:30
#define mode(x)

◆ debugfs_get_aux_num

#define debugfs_get_aux_num (   f)    (unsigned long)debugfs_get_aux(f)

◆ DEFINE_DEBUGFS_ATTRIBUTE

#define DEFINE_DEBUGFS_ATTRIBUTE (   __fops,
  __get,
  __set,
  __fmt 
)     DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, false)

◆ DEFINE_DEBUGFS_ATTRIBUTE_SIGNED

#define DEFINE_DEBUGFS_ATTRIBUTE_SIGNED (   __fops,
  __get,
  __set,
  __fmt 
)     DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, true)

◆ DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED

#define DEFINE_DEBUGFS_ATTRIBUTE_XSIGNED (   __fops,
  __get,
  __set,
  __fmt,
  __is_signed 
)
Value:
static int __fops ## _open(struct inode *inode, struct file *file) \
{ \
__simple_attr_check_format(__fmt, 0ull); \
return simple_attr_open(inode, file, __get, __set, __fmt); \
} \
static const struct file_operations __fops = { \
.open = __fops ## _open, \
.release = simple_attr_release, \
.read = debugfs_attr_read, \
.write = (__is_signed) ? debugfs_attr_write_signed : debugfs_attr_write, \
}
#define THIS_MODULE
Definition module.h:110
Definition fs.h:67
struct module * owner
Definition fs.h:68
int(* release)(struct inode *, struct file *)
Definition fs.h:101
Definition fs.h:142
Definition fs.h:183

Typedef Documentation

◆ debugfs_automount_t

typedef struct vfsmount *(* debugfs_automount_t) (struct dentry *, void *)

Function Documentation

◆ debugfs_get_aux()

void * debugfs_get_aux ( const struct file *  file)

Variable Documentation

◆ arch_debugfs_dir

struct dentry* arch_debugfs_dir
extern

◆ fmt

int const char* fmt