[PATCH v1 09/17] docs: core-api: document the IOVA-based API
Jonathan Corbet
corbet at lwn.net
Fri Nov 8 12:13:27 PST 2024
Leon Romanovsky <leon at kernel.org> writes:
>> So, I see that you have nice kernel-doc comments for these; why not just
>> pull them in here with a kernel-doc directive rather than duplicating
>> the information?
>
> Can I you please point me to commit/lore link/documentation with example
> of such directive and I will do it?
Documentation/doc-guide/kernel-doc.rst has all the information you need.
It could be as simple as replacing your inline descriptions with:
.. kernel-doc:: drivers/iommu/dma-iommu.c
:export:
That will pull in documentation for other, unrelated functions, though;
assuming you don't want those, something like:
.. kernel-doc:: drivers/iommu/dma-iommu.c
:identifiers: dma_iova_try_alloc dma_iova_free ...
Then do a docs build and see the nice results you get :)
Thanks,
jon
More information about the Linux-nvme
mailing list