Thread (5 messages) 5 messages, 3 authors, 2021-11-28

Re: [PATCH V3 net-next 1/2] net: wwan: common debugfs base dir for wwan device

From: Loic Poulain <hidden>
Date: 2021-11-22 08:44:56

On Sat, 20 Nov 2021 at 17:14, M Chetan Kumar
[off-list ref] wrote:
This patch set brings in a common debugfs base directory
i.e. /sys/kernel/debugfs/wwan/ in WWAN Subsystem for a
WWAN device instance. So that it avoids driver polluting
debugfs root with unrelated directories & possible name
collusion.

Having a common debugfs base directory for WWAN drivers
eases user to match control devices with debugfs entries.

WWAN Subsystem creates dentry (/sys/kernel/debugfs/wwan)
on module load & removes dentry on module unload.

When driver registers a new wwan device, dentry (wwanX)
is created for WWAN device instance & on driver unregister
dentry is removed.

New API is introduced to return the wwan device instance
dentry so that driver can create debugfs entries under it.

Signed-off-by: M Chetan Kumar <redacted>
Reviewed-by: Loic Poulain <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help