On Tue, Jan 28, 2025 at 06:29:57PM -0500, Steven Rostedt wrote: > What I did for eventfs, and what I believe kernfs does, is to create a > small descriptor to represent the control data and reference them like what > you would have on disk. That is, the control elements (like an trace event > descriptor) is really what is on "disk". When someone does an "ls" to the > pseudo file system, there needs to be a way for the VFS layer to query the > control structures like how a normal file system would query that data > stored on disk, and then let the VFS layer create the dentry and inodes > when referenced, and more importantly, free them when they are no longer > referenced and there's memory pressure. Yeap, that's exactly what kernfs does. Thanks. -- tejun