zfs/module/os
Rob Norris 0dd0a2d302 linux/kstat: allow multi-level module names
Module names are mapped directly to directory names in procfs, but
nothing is done to create the intermediate directories, or remove them.
This makes it impossible to sensibly present kstats about sub-objects.

This commit loops through '/'-separated names in the full module name,
creates a separate module for each, and hooks them up with a parent
pointer and child counter, and then unrolls this on the other side when
deleting a module.

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
2024-05-22 09:41:55 +10:00
..
freebsd FreeBSD: Add zfs_link_create() error handling 2024-05-16 17:56:55 -07:00
linux linux/kstat: allow multi-level module names 2024-05-22 09:41:55 +10:00