xe_tile_debugfs_simple_show(9)
π 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β theseq_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 π
- Kernel file
./drivers/gpu/drm/xe/xe_tile_debugfs.c xe_tile_debugfs_show_with_rpm(9),xe_tile_debugfs_register(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms