On Wed, Aug 14, 2024 at 11:58 PM Danilo Krummrich <dakr@xxxxxxxxxx> wrote: > > I don't want duplicate the existing documentation around kmalloc and friends > [1]. > > Maybe we can refer to the existing documentation somehow. > > [1] https://www.kernel.org/doc/html/latest/core-api/memory-allocation.html Yeah, that is always a good idea. Sometimes we use the "Reference: <https://...>" patterns, sometimes we linked to C functions/macros/etc. too (as if they were intra-doc links). In the future, the plan is to have the C side docs connected as "external references" via a new `rustdoc` feature, so that we can just write intra-doc links that "magically" resolve to the right place to the C docs. By the way, please use links to docs.kernel.org if possible, they are a bit nicer/shorter. Cheers, Miguel