diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-01 09:14:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:59 -0400 |
commit | 9505e6375640fc61d92d36c8e9f25a6a218f3f57 (patch) | |
tree | dde19254ac9ccd27812aab2c96943bfe2afaf406 /include/asm-powerpc/mpc8260.h | |
parent | 43166141f73f969794bd7c850c89913631df99e4 (diff) |
debugfs: Implement debugfs_remove_recursive()
debugfs_remove_recursive() will remove a dentry and all its children.
Drivers can use this to zap their whole debugfs tree so that they don't
need to keep track of every single debugfs dentry they created.
It may fail to remove the whole tree in certain cases:
sh-3.2# rmmod atmel-mci < /sys/kernel/debug/mmc0/ios/clock
mmc0: card b368 removed
atmel_mci atmel_mci.0: Lost dma0chan1, falling back to PIO
sh-3.2# ls /sys/kernel/debug/mmc0/
ios
But I'm not sure if that case can be handled in any sane manner.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Pierre Ossman <drzeus-list@drzeus.cx>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-powerpc/mpc8260.h')
0 files changed, 0 insertions, 0 deletions