Documentation
The long process of converting the kernel's documentation into RST is finally coming to an end...what has that bought us? We have gone from a chaotic pile of incomplete, crufty, and un-integrated docs to a slightly better organized pile of incomplete, crufty, slightly better integrated docs. Plus we have the infrastructure to make something better from here.
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point? What sorts of improvements to the build infrastructure would be useful? I'll come with some ideas (some of which you've certainly heard before) but will be more interested in listening.
jon
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 11 lines · Jonathan Corbet
The long process of converting the kernel's documentation into RST is finally coming to an end...what has that bought us? We have gone from a chaotic pile of incomplete, crufty, and un-integrated docs to a slightly better organized pile of incomplete, crufty, slightly better integrated docs. Plus we have the infrastructure to make something better from here.
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point? What sorts of improvements to the build infrastructure would be useful? I'll come with some ideas (some of which you've certainly heard before) but will be more interested in listening.
The truth is that I only ever read the documentation in front of the function implementations. And LDD. ;)
There are some subsystems which document their functions in the Documentation directory. For example, pm_request_resume() is documented in Documentation/power/runtime_pm.rst where it describes why it might return 1 on success. It would be awesome if we had an automated way to find this.
I wish that there were a replacement for cscope which showed results in a sorted order:
Global Implementation
Documentation
Local Implemenatations
(For me the struct device is my 995th result... Cscope is terrible. But it's what I use as my default search in the kernel source. I just would like to have one search for everything that would find documentation as well).
regards,
dan carpenter
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 14 lines · Dan Carpenter
Quoted 11 lines · Jonathan Corbet
The long process of converting the kernel's documentation into RST is finally coming to an end...what has that bought us? We have gone from a chaotic pile of incomplete, crufty, and un-integrated docs to a slightly better organized pile of incomplete, crufty, slightly better integrated docs. Plus we have the infrastructure to make something better from here.
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point? What sorts of improvements to the build infrastructure would be useful? I'll come with some ideas (some of which you've certainly heard before) but will be more interested in listening.
Quoted 8 lines
The truth is that I only ever read the documentation in front of the function implementations. And LDD. ;)
There are some subsystems which document their functions in the Documentation directory. For example,
pm_request_resume()is documented inDocumentation/power/runtime_pm.rstwhere it describes why it might return 1 on success. It would be awesome if we had an automated way to find this.
My recommendation is to move these into the code, as kerneldoc. And then pull it into the .rst using one of the kerneldoc include directives.
Large chunks of Documentation/gpu/*.rst files are just scaffolding to pull the comments out of source files. The only thing we have in .rst files is the big picture overview stuff - even local overview stuff is simply done as DOC: kerneldoc comments in source code. -Daniel
Quoted 17 lines
I wish that there were a replacement for cscope which showed results in a sorted order:
Global Implementation
Documentation
Local Implemenatations
(For me the struct device is my 995th result... Cscope is terrible. But it's what I use as my default search in the kernel source. I just would like to have one search for everything that would find documentation as well).regards,
dan carpenter
Quoted 4 lines
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 3 lines · Jonathan Corbet
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point?
We have a whole slew of quite basic introductory materials to the very fundamental kernel data structures that are scattered all over the planet and in the LWN kernel archive. All in often slightly dated variants. Examples:
https://www.kernel.org/doc/gorman/html/understand/understand006.html
http://vger.kernel.org/~davem/skb_data.html
I suppose technical writers could benefit from a global TODO list with this kind of subjects such as "document the basic arch interface", "document what an skb is", "document how the page directory works".
Right now it is a mixture of read the code, "everybody knows how that works" and random sources on the Internet, which isn't very helpful to newcomers.
I second Vetters point to tie this documentation in tightly with the code implementing it even pretty substantial text chunks IMO, the idea can be attributed to Donald Knuth's book on literate programming from 1984, and while he was a bit enthusiastic the idea isn't bad at all.
Yours,
Linus Walleij
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 13 lines · Linus Walleij
Quoted 3 lines · Jonathan Corbet
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point?
We have a whole slew of quite basic introductory materials to the very fundamental kernel data structures that are scattered all over the planet and in the LWN kernel archive. All in often slightly dated variants. Examples:
https://www.kernel.org/doc/gorman/html/understand/understand006.html
http://vger.kernel.org/~davem/skb_data.html
Quoted 4 lines
I suppose technical writers could benefit from a global TODO list with this kind of subjects such as "document the basic arch interface", "document what an skb is", "document how the page directory works".
I totally agree. A solid TODO list is necessary to channel efforts.
Quoted 4 lines
Right now it is a mixture of read the code, "everybody knows how that works" and random sources on the Internet, which isn't very helpful to newcomers.
Also true. I New comers are intimidated to ask questions in the first place and they might not get responses. It boils down to bandwidth more often than not. People that know the sub-systems well might not have time to document and more importantly keeping the documents updated.
Quoted 5 lines
I second Vetters point to tie this documentation in tightly with the code implementing it even pretty substantial text chunks IMO, the idea can be attributed to Donald Knuth's book on literate programming from 1984, and while he was a bit enthusiastic the idea isn't bad at all.
It definitely helps to that. I do see lots of calls without no comments and usage information. For this to work, we have to give feedback during the review process. This is necessary for commit logs as well.
I am interested in this topic as I help new developers and I often hear the same concern that there aren't resources for them to learn and understand kernel subsystems.
I have been reaching out to new contributors to kernel for the last 6 releases starting with Linux 5.1 asking
"What suggestions do you have for improving the materials and guidance available to new contributors?"
The feedback always is request for updated information in kernel documentation and online resources. I will be glad to share detailed feedback if there is interest.
Addressing the need in providing kernel documentation could address the need.
thanks,
-- Shuah
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.
So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 9 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
I didn't suggest anything like that. I merely mentioned that lack of bandwidth is a reason for outdated documentation.
As for solutions, I am hoping one or two viable options will bubble up as we talk about the issue on this thread and at the kernel summit.
thanks,
-- Shuah
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
H Shuah,
Quoted 11 lines · Shuah Khan
Quoted 7 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
I didn't suggest anything like that. I merely mentioned that lack of bandwidth is a reason for outdated documentation.
I think it may be more of a priority issue than a bandwidth issue. Most subsystems have traditionally not put lots of effort in documenting designs and APIs, and very few of them, even today, enforce documentation rules. I don't disagree that some area of the kernel have little available bandwidth, we have some very small subsystems, or niche areas where only a handful of people would be able to understand what's going on (and if you ask me, that's a reason to have more documentation, not less :-)). We also have large subsystems where policies have been put in place over time to get developers to write documentation. I'm thinking about V4L2 or DRM for instance, where the former has extensive documentation of the userspace API, and the latter extensive documentation of the in-kernel API. I believe other subsystems could follow if maintainers considered lack of documentation to be a blocker on patch submission.
This would however leave some developers in an uncomfortable situation. While writing documentation is no fun for most of us, it gets much worse for developers who are less fluent in English. Learning how to write good documentation is hard enough without having to also learn a new language. I think this is a problem that needs to be addressed on its own.
Another issue that I also believe is important is where to put the bar when it comes to documentation quality. I've reviewed many documentation patches where I wasn't completely happy with the proposal (as I'm prone to nit-picking during review I'll take blames here). Something that is clear to the author of the code won't be to someone who has less knowledge in that area, and more often that not patch authors don't write documentation from the point of view of the reader. This is something that can be learnt though, and I believe the kernel would benefit from involving more technical writers who could help reviewing documentation submissions and point out inconsistencies. There's a matter of budget there though, it may be difficult to attract technical writers who would help just for the fun of it.
Quoted 3 lines
As for solutions, I am hoping one or two viable options will bubble up as we talk about the issue on this thread and at the kernel summit.
Signature · 7 lines
Regards, Laurent Pinchart _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 9 lines · Laurent Pinchart
H Shuah,
Quoted 6 lines · Shuah Khan
Quoted 5 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
I didn't suggest anything like that. I merely mentioned that lack of bandwidth is a reason for outdated documentation.
I think it may be more of a priority issue than a bandwidth issue.
Second that. Writing code usually seems more rewarding :)
Quoted 14 lines
Most subsystems have traditionally not put lots of effort in documenting designs and APIs, and very few of them, even today, enforce documentation rules. I don't disagree that some area of the kernel have little available bandwidth, we have some very small subsystems, or niche areas where only a handful of people would be able to understand what's going on (and if you ask me, that's a reason to have more documentation, not less :-)). We also have large subsystems where policies have been put in place over time to get developers to write documentation. I'm thinking about V4L2 or DRM for instance, where the former has extensive documentation of the userspace API, and the latter extensive documentation of the in-kernel API. I believe other subsystems could follow if maintainers considered lack of documentation to be a blocker on patch submission.
Quoted 6 lines
This would however leave some developers in an uncomfortable situation. While writing documentation is no fun for most of us, it gets much worse for developers who are less fluent in English. Learning how to write good documentation is hard enough without having to also learn a new language. I think this is a problem that needs to be addressed on its own.
I think we should make a distinction between adding new documentation and updating the existing one. I agree that writing documentation is not easy, especially when you need to write it from scratch. But making small amends to the existing documentation along with the code changes so that docs and code would still much is not that difficult. For such cases a request to have documentation update as a part of the changes wouldn't be too much to ask.
Quoted 21 lines
Another issue that I also believe is important is where to put the bar when it comes to documentation quality. I've reviewed many documentation patches where I wasn't completely happy with the proposal (as I'm prone to nit-picking during review I'll take blames here). Something that is clear to the author of the code won't be to someone who has less knowledge in that area, and more often that not patch authors don't write documentation from the point of view of the reader. This is something that can be learnt though, and I believe the kernel would benefit from involving more technical writers who could help reviewing documentation submissions and point out inconsistencies. There's a matter of budget there though, it may be difficult to attract technical writers who would help just for the fun of it.
Quoted 3 lines
As for solutions, I am hoping one or two viable options will bubble up as we talk about the issue on this thread and at the kernel summit.
Signature · 3 lines
Regards, Laurent Pinchart
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 9 lines · Mike Rapoport
Quoted 6 lines · Laurent Pinchart
This would however leave some developers in an uncomfortable situation. While writing documentation is no fun for most of us, it gets much worse for developers who are less fluent in English. Learning how to write good documentation is hard enough without having to also learn a new language. I think this is a problem that needs to be addressed on its own.
Quoted 7 lines
I think we should make a distinction between adding new documentation and updating the existing one. I agree that writing documentation is not easy, especially when you need to write it from scratch. But making small amends to the existing documentation along with the code changes so that docs and code would still much is not that difficult. For such cases a request to have documentation update as a part of the changes wouldn't be too much to ask.
I wouldn't underestimate the barriers this can create for developers who are less fluent in English, take a browse through changelogs sometime. There's a big jump from being able to write understandable code and communicate what it's about to being able to write clear and useful documentation.
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 12 lines · Laurent Pinchart
H Shuah,
Quoted 9 lines · Shuah Khan
Quoted 7 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
Quoted 7 lines
Quoted 2 lines
I didn't suggest anything like that. I merely mentioned that lack of bandwidth is a reason for outdated documentation.
I think it may be more of a priority issue than a bandwidth issue. Most subsystems have traditionally not put lots of effort in documenting designs and APIs, and very few of them, even today, enforce documentation rules.
First of all - thanks for a very detailed email.
+1. Yes priority is probably a bigger reason. We can make time for the things we care about. In general documentation isn't fun for engineers and also not as glamorous.
I don't disagree that some area of the kernel have
Quoted 6 lines
little available bandwidth, we have some very small subsystems, or niche areas where only a handful of people would be able to understand what's going on (and if you ask me, that's a reason to have more documentation, not less :-)). We also have large subsystems where policies have been put in place over time to get developers to write documentation.
Quoted 7 lines
I'm
thinking about V4L2 or DRM for instance, where the former has extensive documentation of the userspace API, and the latter extensive documentation of the in-kernel API. I believe other subsystems could follow if maintainers considered lack of documentation to be a blocker on patch submission.
Correct. Media subsystem does this very well and can be held up as an example for good documentation mainly because media maintainers emphasize and make it a priority. I have been well trained by to start with documentation when I am doing media work. :)
I follow this for the driver I maintain and kselftest. The latter not as successfully. It is harder to have a cohesive strategy for subsystem or an area that is generic and have more people involved, unless everybody is on board and agree that documentation is important.
Quoted 7 lines
This would however leave some developers in an uncomfortable situation. While writing documentation is no fun for most of us, it gets much worse for developers who are less fluent in English. Learning how to write good documentation is hard enough without having to also learn a new language. I think this is a problem that needs to be addressed on its own.
Yes. That is also correct. The way I address it depending on bandwidth is working during the reviews to get get documentation right, when I consider it very important to understand the patch and be able to maintain it later.
Quoted 4 lines
Another issue that I also believe is important is where to put the bar when it comes to documentation quality. I've reviewed many documentation patches where I wasn't completely happy with the proposal (as I'm prone to nit-picking during review I'll take blames here). Something that is
Quoted 9 lines
clear to the author of the code won't be to someone who has less knowledge in that area, and more often that not patch authors don't write documentation from the point of view of the reader. This is something that can be learnt though, and I believe the kernel would benefit from involving more technical writers who could help reviewing documentation submissions and point out inconsistencies. There's a matter of budget there though, it may be difficult to attract technical writers who would help just for the fun of it.
Right. I find myself in the same place as you. I end up asking for info. which annoys people at times. I find documenting work is an important step in the development process. I might be in the minority, however, at times, as I am writing my commit log explaining what I am doing in a patch in, I find a better way to fix a problem.
So I find it useful and I also use it as learning tool. When I attempt document or explain a concept or an area, I get a deeper understanding of that area. I would counter the argument that new developers can't document an area, they can and the document can be reviewed by experts. I have had some level of success adding documentation tasks in the mentoring program. It does requires experts spending time reviewing to make sure it is correct.
The larger problem goes back to, documentation isn't glamorous. It isn't valued at the same level of code. If we collectively agree that it is, then we can make it happen. We might sending a wrong message by saying "Code walks ...". I understand what we mean by that we don't want a long proposal and we would rather see code.
Maybe we can amend it to say "Code with good documentation walks ...".
The documentation in my mind includes:
commit logs
doc area at the top of functions declarations
API documentation
thanks,
-- Shuah
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 7 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
Writing documentation is a way to learn.
Besides, to produce good and usefull documentation it is not necessary to have very deep understanding of all the small details. The writer must capture the large picture and be able to explain it.
Quoted 4 lines
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 11 lines · Mike Rapoport
Quoted 7 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
Writing documentation is a way to learn.
+1
I find it useful and I also use it as learning tool. When I attempt document or explain a concept or an area, I get a deeper understanding of that area.
Quoted 3 lines
Besides, to produce good and usefull documentation it is not necessary to have very deep understanding of all the small details. The writer must capture the large picture and be able to explain it.
+1.
I would counter the argument that new developers can't document an area, they can and the document can be reviewed by experts.
A fresh set of eyes bring a new perspective and could help improve the code, just like the benefits of having others test your code.
I have had some level of success adding documentation tasks in the mentoring program. It does require experts spending time reviewing to make sure it is correct.
One thing we could do is creating a list documentation todo and review which is part of our development workflow anyway.
thanks,
-- Shuah
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
I tried collecting information about missing or incorrectly formatted function documentation using Coccinelle. Here is an example of the output:
drivers/net/ethernet/freescale/fman/fman.c:2077 fman_register_intr: extra names mod, f_isr, h_src_arg drivers/net/ethernet/freescale/fman/fman.c:2077 fman_register_intr: missing name isr_cb drivers/net/ethernet/freescale/fman/fman.c:2077 fman_register_intr: missing name module drivers/net/ethernet/freescale/fman/fman.c:2077 fman_register_intr: missing name src_arg drivers/net/ethernet/freescale/fman/fman.c:2077 fman_register_intr: return comment but no return value drivers/net/ethernet/freescale/fman/fman.c:2103 fman_unregister_intr: extra names mod drivers/net/ethernet/freescale/fman/fman.c:2103 fman_unregister_intr: missing name module drivers/net/ethernet/freescale/fman/fman.c:2103 fman_unregister_intr: return comment but no return value drivers/net/ethernet/freescale/fman/fman.c:2355 fman_get_revision: return comment but no return value drivers/net/ethernet/freescale/fman/fman.c:2520 fman_bind: extra names dev drivers/net/ethernet/freescale/fman/fman.c:2520 fman_bind: missing name fm_dev drivers/net/ethernet/freescale/fman/fman.c:2527 fman_has_errata_a050385: no comment for fman_has_errata_a050385
It's not illustrated here, but if it can find documentation for the same variable with the same type somewhere else in the same file, it suggests that, and it finds a mention of the function in the Documentation directory, it give the name of that file.
I assumed that all EXPORT_SYMBOLs and EXPORT_SYMBOL_GPLs should be documented. Perhaps this was an overapproximation, because it seems like a lot of them are not.
julia
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 4 lines · Julia Lawall
I tried collecting information about missing or incorrectly formatted function documentation using Coccinelle. Here is an example of the output:
Quoted 12 lines
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: extra names mod,f_isr,h_src_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing nameisr_cbdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing namesrc_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: extra names moddrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2355fman_get_revision: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: extra names devdrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: missing namefm_devdrivers/net/ethernet/freescale/fman/fman.c:2527fman_has_errata_a050385: no comment forfman_has_errata_a050385
just fyi: scripts/kernel-doc already does:
$ ./scripts/kernel-doc drivers/net/ethernet/freescale/fman/fman.c > /dev/null drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'module' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'mod' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'f_isr' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Function parameter or member 'module' not described in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Excess function parameter 'mod' description in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'fman' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Function parameter or member 'fm_dev' not described in 'fman_bind' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Excess function parameter 'dev' description in 'fman_bind'
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 20 lines · Joe Perches
Quoted 4 lines · Julia Lawall
I tried collecting information about missing or incorrectly formatted function documentation using Coccinelle. Here is an example of the output:
Quoted 12 lines
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: extra names mod,f_isr,h_src_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing nameisr_cbdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing namesrc_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: extra names moddrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2355fman_get_revision: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: extra names devdrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: missing namefm_devdrivers/net/ethernet/freescale/fman/fman.c:2527fman_has_errata_a050385: no comment forfman_has_errata_a050385just fyi:
scripts/kernel-docalready does:
Quoted 13 lines
$ ./scripts/kernel-doc drivers/net/ethernet/freescale/fman/fman.c > /dev/null drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'module' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'mod' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'f_isr' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Function parameter or member 'module' not described in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Excess function parameter 'mod' description in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'fman' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Function parameter or member 'fm_dev' not described in 'fman_bind' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Excess function parameter 'dev' description in 'fman_bind'
OK, that's about the same then. I manage to make a few suggestions on some examples, but not that many.
julia
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Also W=1 will enable documentation warnings. We can move that to default if we want people to take documentation seriously. Last time I tried it added about 700 warnings to the build and I didn't have the spoons to make a serious dent in fixing those warnings.
Maybe _that_ would be a good beginner task because it doesn't take much in depth knowledge of any particular subsystem.
Quoted 61 lines · On Sat., Jun. 13, 2020, 12:57 Joe Perches, <[email protected]> wrote:
Quoted 5 lines · Julia Lawall
I tried collecting information about missing or incorrectly formatted function documentation using Coccinelle. Here is an example of the output:
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:extra names mod,
f_isr,h_src_argQuoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:missing name
isr_cbQuoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:missing name module
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:missing name
src_argQuoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:return comment but no return value
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:extra names mod
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:missing name module
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:return comment but no return value
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2355fman_get_revision:return comment but no return value
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: extra namesdev
Quoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: missing name
fm_devQuoted 1 line
drivers/net/ethernet/freescale/fman/fman.c:2527fman_has_errata_a050385:no comment for
fman_has_errata_a050385just fyi:
scripts/kernel-docalready does:$ ./scripts/kernel-doc drivers/net/ethernet/freescale/fman/fman.c > /dev/null drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'module' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'mod' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'f_isr' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Function parameter or member 'module' not described in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Excess function parameter 'mod' description in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'fman' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Function parameter or member 'fm_dev' not described in 'fman_bind' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Excess function parameter 'dev' description in 'fman_bind'
Quoted 5 lines
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 7 lines · Matthew Wilcox
Also W=1 will enable documentation warnings. We can move that to default if we want people to take documentation seriously. Last time I tried it added about 700 warnings to the build and I didn't have the spoons to make a serious dent in fixing those warnings.
Maybe _that_ would be a good beginner task because it doesn't take much in depth knowledge of any particular subsystem.
That's true, but unless we pay more attention to include kerneldoc changes with patches that change APIs we would train many beginners this way ;-)
Quoted 73 lines · On Sat., Jun. 13, 2020, 12:57 Joe Perches, <[email protected]> wrote:
On Sat, 2020-06-13 at 18:42 +0200, Julia Lawall wrote:
> I tried collecting information about missing or incorrectly formatted > function documentation using Coccinelle. Here is an example of the > output:
>
>drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: extra names mod,f_isr,h_src_arg
>drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:
missing nameisr_cb
>drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:
missing name module
>drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:
missing namesrc_arg
>drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr:
return comment but no return value
>drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:
extra names mod
>drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:
missing name module
>drivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr:
return comment but no return value
>drivers/net/ethernet/freescale/fman/fman.c:2355fman_get_revision: return comment but no return value
>drivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: extra names dev
>drivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: missing namefm_dev
>drivers/net/ethernet/freescale/fman/fman.c:2527fman_has_errata_a050385:
no comment forfman_has_errata_a050385just fyi:
scripts/kernel-docalready does:$
./scripts/kernel-docdrivers/net/ethernet/freescale/fman/fman.c>/dev/null
drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'module' not described in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'mod' description in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'f_isr' description in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr'drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Function parameter or member 'module' not described in 'fman_unregister_intr'drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Excess function parameter 'mod' description in 'fman_unregister_intr'drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'fman' not described in 'fman_get_revision'drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision'drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Function parameter or member 'fm_dev' not described in 'fman_bind'drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Excess function parameter 'dev' description in 'fman_bind'_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 3 lines · Joe Perches
just fyi:
scripts/kernel-docalready does:$ ./scripts/kernel-doc drivers/net/ethernet/freescale/fman/fman.c > /dev/null
FYI, kernel-doc has the -none option to not output any documentation, only the warnings. Perhaps not the most intuitive thing you ever saw, but might be slightly more efficient than redirecting stdout to /dev/null.
BR,
Jani.
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Hi Joe,
Quoted 20 lines · Joe Perches
Quoted 4 lines · Julia Lawall
I tried collecting information about missing or incorrectly formatted function documentation using Coccinelle. Here is an example of the output:
Quoted 12 lines
drivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: extra names mod,f_isr,h_src_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing nameisr_cbdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: missing namesrc_argdrivers/net/ethernet/freescale/fman/fman.c:2077fman_register_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: extra names moddrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: missing name moduledrivers/net/ethernet/freescale/fman/fman.c:2103fman_unregister_intr: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2355fman_get_revision: return comment but no return valuedrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: extra names devdrivers/net/ethernet/freescale/fman/fman.c:2520fman_bind: missing namefm_devdrivers/net/ethernet/freescale/fman/fman.c:2527fman_has_errata_a050385: no comment forfman_has_errata_a050385just fyi:
scripts/kernel-docalready does:
Quoted 13 lines
$ ./scripts/kernel-doc drivers/net/ethernet/freescale/fman/fman.c > /dev/null drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'module' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'mod' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'f_isr' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2080: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Function parameter or member 'module' not described in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2105: warning: Excess function parameter 'mod' description in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'fman' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2356: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Function parameter or member 'fm_dev' not described in 'fman_bind' drivers/net/ethernet/freescale/fman/fman.c:2521: warning: Excess function parameter 'dev' description in 'fman_bind'
Can this be somehow reported by checkpatch.pl?
What I mean is that if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 2 lines · Mike Rapoport
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
No, it can not. Not directly.
Please remember that checkpatch is a trivial set of regexes and that checkpatch looks only at patch diff blocks line-by-line.
A patch block that changes a function argument may not also contain the kernel-doc.
As there already is an existing tool, that tool should be used when possible.
_______________________________________________
Ksummit-discuss mailing list [email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Mauro Carvalho Chehab
Em Thu, 18 Jun 2020 07:40:22 -0700
Joe Perches <[email protected]> escreveu:Quoted 4 lines · Mike Rapoport
Quoted 2 lines
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
Quoted 7 lines
Quoted 1 line
No, it can not. Not directly.
Well, perhaps checkpatch.pl could run:
./scripts/kernel-doc-noneif it finds "/**" on a patch, showing the warnings produced by it, if any.
checkpatch runs on patches.
Use the tools that are designed for this instead.
Quoted 2 lines
Quoted 2 lines
As there already is an existing tool, that tool
should be used when possible.
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 10 lines · Joe Perches
Quoted 9 lines · Mauro Carvalho Chehab
Em Thu, 18 Jun 2020 07:40:22 -0700
Joe Perches <[email protected]> escreveu:Quoted 5 lines · Mike Rapoport
Quoted 2 lines
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
No, it can not. Not directly.
Quoted 8 lines
Quoted 5 lines
Well, perhaps checkpatch.pl could run:
./scripts/kernel-doc-noneif it finds "/**" on a patch, showing the warnings produced by it, if any.
checkpatch runs on patches.
Use the tools that are designed for this instead.
The problem is that people usually do run checkpatch and do not run kernel-doc. That's where the idea to somehow put documentation checks into checkpatch came from.
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
As there already is an existing tool, that tool
should be used when possible.
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 15 lines · Mike Rapoport
Quoted 14 lines · Joe Perches
Quoted 13 lines · Mauro Carvalho Chehab
Em Thu, 18 Jun 2020 07:40:22 -0700
Joe Perches <[email protected]> escreveu:Quoted 5 lines · Mike Rapoport
Quoted 2 lines
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
No, it can not. Not directly.
Well, perhaps checkpatch.pl could run:
./scripts/kernel-doc-none
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
if it finds "/**" on a patch, showing the warnings produced by it, if any.
checkpatch runs on patches.
Use the tools that are designed for this instead.The problem is that people usually do run checkpatch and do not run kernel-doc. That's where the idea to somehow put documentation checks into checkpatch came from.
I much prefer this patch:
https://lore.kernel.org/patchwork/patch/1260408/
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 21 lines · Joe Perches
Quoted 20 lines · Mike Rapoport
Quoted 18 lines · Joe Perches
Quoted 7 lines · Mauro Carvalho Chehab
Em Thu, 18 Jun 2020 07:40:22 -0700
Joe Perches <[email protected]> escreveu:Quoted 4 lines · Mike Rapoport
Quoted 2 lines
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
Quoted 7 lines
Quoted 1 line
No, it can not. Not directly.
Well, perhaps checkpatch.pl could run:
./scripts/kernel-doc-noneif it finds "/**" on a patch, showing the warnings produced by it, if any.
checkpatch runs on patches.
Use the tools that are designed for this instead.
Quoted 6 lines
Quoted 3 lines
The problem is that people usually do run checkpatch and do not run kernel-doc. That's where the idea to somehow put documentation checks into checkpatch came from.
I much prefer this patch:
https://lore.kernel.org/patchwork/patch/1260408/
I don't see how it will help reducing amount of the kernel-doc warnings and how it'll make people to check if their patch introduces new ones...
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 26 lines · Mike Rapoport
Quoted 25 lines · Joe Perches
Quoted 23 lines · Mike Rapoport
Quoted 10 lines · Joe Perches
Quoted 9 lines · Mauro Carvalho Chehab
Em Thu, 18 Jun 2020 07:40:22 -0700
Joe Perches <[email protected]> escreveu:Quoted 5 lines · Mike Rapoport
Quoted 2 lines
if a patch breaks the sync between the code and the kerneldoc can it be detected by checkpatch.pl?
No, it can not. Not directly.
Quoted 8 lines
Quoted 5 lines
Well, perhaps checkpatch.pl could run:
./scripts/kernel-doc-noneif it finds "/**" on a patch, showing the warnings produced by it, if any.
checkpatch runs on patches.
Use the tools that are designed for this instead.The problem is that people usually do run checkpatch and do not run kernel-doc. That's where the idea to somehow put documentation checks into checkpatch came from.
Quoted 5 lines
Quoted 2 lines
I much prefer this patch:
https://lore.kernel.org/patchwork/patch/1260408/I don't see how it will help reducing amount of the kernel-doc warnings and how it'll make people to check if their patch introduces new ones...
It seems like 0-day and the like would be a better solution, since they know how to apply the patch, run tools on the sources as a whole, and look for new warnings mixed in with older warnings.
Andrew
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
A message that is not in the archive (sent off-list or not yet received): 104986.1594328429@turing-police
Quoted 5 lines · Valdis Klētnieks
Quoted 3 lines · Andrew Lunn
It seems like 0-day and the like would be a better solution, since they know how to apply the patch, run tools on the sources as a whole, and look for new warnings mixed in with older warnings.
[]
Quoted 3 lines
(For the record, I'm OK with Masahiro Yamada's suggestion to add a W=d option to the current W=123 - that's probably a better idea than my original patch...)
I'm fine with that too.
_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Hi Shuah,
Quoted 10 lines · Shuah Khan
Quoted 9 lines · Mike Rapoport
Quoted 7 lines · Joe Perches
Quoted 3 lines · Shuah Khan
People that know the sub-systems well might not
have time to document and more importantly keeping the documents updated.So you somehow expect people that do _not_ know the sub-system well to produce good and useful documentation?
Quoted 7 lines
Quoted 1 line
Writing documentation is a way to learn.
+1
I find it useful and I also use it as learning tool. When I attempt document or explain a concept or an area, I get a deeper understanding of that area.
I only partly agree with that. I started the DRM documentation effort because I had to write a driver, and there was no documentation. Writing doc was indeed a way to learn, but it's a really high barrier to entry, more difficult than "just" writing a new driver. You need a very high level of motivation to do so, I don't think it's a suitable for someone who has little technical knowledge of the Linux kernel for instance. It also requires lots of time.
Quoted 11 lines
Quoted 3 lines
Besides, to produce good and usefull documentation it is not necessary to have very deep understanding of all the small details. The writer must capture the large picture and be able to explain it.
+1.
I would counter the argument that new developers can't document an area, they can and the document can be reviewed by experts.
A fresh set of eyes bring a new perspective and could help improve the code, just like the benefits of having others test your code.
A fresh set of eyes can point to inconsistencies in the code while writing documentation, but I don't share the view that we can consider documentation writing as a good learning curve task in general, it really requires lots of time and a strong incentive in addition to documentation writing itself.
Quoted 3 lines
I have had some level of success adding documentation tasks in the mentoring program. It does require experts spending time reviewing to make sure it is correct.
Are those proposed, ongoing or completed tasks ? If some are completed, could you share information about what has been produced ?
Quoted 2 lines
One thing we could do is creating a list documentation todo and review which is part of our development workflow anyway.
Signature · 7 lines
Regards, Laurent Pinchart _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
Quoted 11 lines · Jonathan Corbet
The long process of converting the kernel's documentation into RST is finally coming to an end...what has that bought us? We have gone from a chaotic pile of incomplete, crufty, and un-integrated docs to a slightly better organized pile of incomplete, crufty, slightly better integrated docs. Plus we have the infrastructure to make something better from here.
What are the next steps for kernel documentation? What would we really like our docs to look like, and how might we find the resources to get them to that point? What sorts of improvements to the build infrastructure would be useful? I'll come with some ideas (some of which you've certainly heard before) but will be more interested in listening.
Antoher question I've been asking myself is what to do with good but old guides. For instance, Documentation/virt/uml/user_mode_linux.rst describes how to debug the kernel with gdb, but most of the code references there are stale by now.
Another example is "Unreliable Guide To Hacking The Linux Kernel" (Documentation/kernel-hacking/hacking.rst). It's really nicely written by it is way too out of date.
Quoted 1 line
jon
Signature · 6 lines
Sincerely yours, Mike. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss