xe_tile_debugfs_simple_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_tile_debugfs_simple_show(9) β€” the kernel API glow-up

okay bestie, so this one's from the Kernel API Manual and it's literally the little callback that could πŸ’– it's called xe_tile_debugfs_simple_show, and honestly? icon behavior.


✨ NAME ✨

xe_tile_debugfs_simple_show β€” a show callback for struct drm_info_list. that's it, that's the vibe πŸŽ€


🌸 SYNOPSIS 🌸

int xe_tile_debugfs_simple_show (struct seq_file *m , void *data );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • m β€” the seq_file. yes queen, that's the whole description, she's lowkey mysterious πŸ’…
  • data β€” the data used by the drm debugfs helpers ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

so this callback can be used inside struct drm_info_list to describe debugfs files that are xe_tile specific. like, main character files only, no cap 🫢

the assumption here (and bestie, there are assumptions) is that those debugfs files will be created on a directory entry where struct dentry's d_inode->i_private points to xe_tile. here's the little family tree 🌈:

/sys/kernel/debug/dri/0/
β”œβ”€β”€ tile0/              # tile = dentry->d_inode->i_private
β”‚   β”œβ”€β”€ id              # tile = dentry->d_parent->d_inode->i_private

this function also assumes that m->private will be set to the struct drm_info_node corresponding to the instance of the info on a given struct drm_minor (see struct drm_info_list.show for the deets, iykyk) πŸ’œ

and it also assumes that struct drm_info_list.data will point to the function code that will actually print a file content:

int (*print)(struct xe_tile *, struct drm_printer *)

now feast your eyes on the example, it's giving tutorial era ⭐:

int tile_id(struct xe_tile *tile, struct drm_printer *p)
{
    drm_printf(p, "u0, tile->id);
    return 0;
}

static const struct drm_info_list info[] = {
    { name = "id", .show = tile_debugfs_simple_show, .data = tile_id },
};

dir = debugfs_create_dir("tile0", parent);
dir->d_inode->i_private = tile;
drm_debugfs_create_files(info, ARRAY_SIZE(info), dir, minor);
fr fr, copy those exactly β€” don't be out here "fixing" the quotes, that's not your era πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

0 on success, or a negative error code on failure. so either she slays or she gives you a negative number, and honestly same 😭


πŸ’€ SEE ALSO πŸ’€


and that's the whole page, bestie 🧚 from ./drivers/gpu/drm/xe, dated October 2026, titled xe_tile_debugfs_simple_show(9). periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from