Search notes:

scripts/find-unused-docs.sh

scripts/find-unused-docs.sh detects *.c files (in a specified directory) with kernel-doc comments for exported functions that are not referenced in RST files:
$ scripts/find-unused-docs.sh sound/firewire
The following files contain kerneldoc comments for exported functions that are not used in the formatted documentation
sound/firewire/cmp.c
sound/firewire/fcp.c
sound/firewire/packets-buffer.c
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-am824.c
sound/firewire/iso-resources.c
sound/firewire/lib.c
The script first finds all source files referenced by a .. kernel-doc instruction under Documentation/ ( grep -rHR ".. kernel-doc" --include \*.rst | cut -d " " -f 3) and stores the file names in the array FILES_INCLUDED.
It then iterates over each *.c file under the specified directory (this line) and checks if the file contains kernel-doc by calling scripts/kernel-doc. If the file does contain kernel-doc but is not referenced in the set of *.rst files, the name of the file is printed to the console.

See also

Other scripts

Links

https://github.com/torvalds/linux/blob/master/scripts/find-unused-docs.sh

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/ke...', 1738279137, '3.145.75.30', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/kernel/source/scripts/find-unused-docs_sh(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78