History

docs: debugfs: do not recommend debugfs_remove_recursive

Update the debugfs documentation to indicate that debugfs_remove() should be used to clean up debugfs entries. In commit a3d1e7eb5abe ("simple_recursive_removal(): kernel-side rm -rf for ramfs-style filesystems"), function debugfs_remove_recursive() was made into an alias for debugfs_remove(): #define debugfs_remove_recursive debugfs_remove Therefore, drivers should just use debugfs_remove() going forward.

Timur Tabi committed 1 year ago

Commit e99efa81 parent 0e4965c2 files · +7 −14Browse files

Showing the changes to Documentation/process/debugging/driver_development_debugging_guide.rst (1 of 2 files). Show all

Unified · Split

Documentation/process/debugging/driver_development_debugging_guide.rst+1−1
@@ -155,7 +155,7 @@ The general idea is: · 154 unmodified lines
155 ``my_variable``155 ``my_variable``
156 156
157- Clean up the directory when removing the device157- Clean up the directory when removing the device
158 (``debugfs_remove_recursive(parent);``)158 (``debugfs_remove(parent);``)
159 159
160For the full documentation see :doc:`/filesystems/debugfs`.160For the full documentation see :doc:`/filesystems/debugfs`.
161 161

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t