STRUCT RFTYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to struct rftype(9) β€” the Kernel API Manual page that describes each file in the resctrl file system. ngl, that's it, that's the assignment. 🫢

πŸ“œ SYNOPSIS πŸ“œ

struct rftype {
    char *name;
    umode_t mode;
    const struct kernfs_ops *kf_ops;
    unsigned long           flags;
    unsigned long           fflags;
    int (*seq_show)(struct kernfs_open_file *of, struct seq_file *sf,
void *v);
    ssize_t (*write)(struct kernfs_open_file *of, char *buf, size_t
nbytes, loff_t off);
 };

πŸŽ€ Members πŸŽ€

bestie, here's the cast β€” every field is literally carrying its own little job, and it's giving blueprint energy, ngl. ✨

  • name β€” File name. iconic.
  • mode β€” Access mode. the vibe check for access.
  • kf_ops β€” File operations. the behavior squad.
  • flags β€” File specific RFTYPE_FLAGS_* flags. yes, those exact flags.
  • fflags β€” File specific RFTYPE_* flags. not a typo, it's fflags.
  • seq_show β€” Show content of the file. the reveal. πŸ‘€
  • write β€” Write to the file. putting stuff in. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/resctrl/internal.h β€” then the linked besties, fr fr:

  • cpumask_any_housekeeping(9)
  • struct mon_evt(9)
  • struct mon_data(9)
  • struct rmid_read(9)
  • enum rdtgrp_mode(9)
  • struct mongroup(9)
  • struct rdtgroup(9)
  • struct mbm_state(9)

source/version vibes: ./fs/resctrl 🌸 date: October 2026 β€” and that's the struct rftype(9) sign-off, periodt. πŸ’œ

πŸ“¦ where this page comes from