Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4627903iob; Sun, 8 May 2022 19:47:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxSihgiI+LqM8Dtw9UaT9B259OqElpZ4IeFYq4fpdjvarcw0HDjvPyU7pCLBp12noO1A1z X-Received: by 2002:a17:902:8501:b0:15f:173:40e1 with SMTP id bj1-20020a170902850100b0015f017340e1mr6961600plb.74.1652064439029; Sun, 08 May 2022 19:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652064439; cv=none; d=google.com; s=arc-20160816; b=lZUtlNOXPoYDFeryKOKVYWZBjvKcopPBhx0gwoc+Nc3dQOFlQc/VxpymxbDyTrh9y6 b+6jTZnEMYpK0x56JbU/MXCThG5ivEbP4miSecFZRX1SXYodCw1j8p89Cx4dbD/Cxw6t R/Qmfs4OV4ZVmZR+xtyXsgfVe5D8hTzBnIzcivr17CguaC9HuX/rZfDrfY40uR/2cc4B 8WED7ih2fYkvtvGSCSlRtQkHrxJE3tdbGo1bDsUZAjd2Y2WqG66mzvqaOwG/l1TuXbSz SNmNpjECoIeiY/diqVldK9DsuEp8gvj+trDmKlg6f71C03FPm0RbJDmzYJBhMPGW8IcG gqhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3afSRUyqURqd+oMSYddARQ8dgu6A28njYvK52vqSOHE=; b=r9H6y2Yeo/36tO5+bKRjN66UP7Xap1l0DZDyQ8E8wEmLCeMEpoVL/PXvkX6zCmjSog bN0JYoGLdCZ4K9m0FIqy7GIL9tsME3nJBbJ7ZckZnxOlivO+qibm/p3iifICUlMlTiB+ ftgXqamWcJPJbmvuvMqa/LDAABPeGJG//YCSOGVmgFvlqBEf9VVJCNQvxPey10ZYtbNj GiW8GYlNBx5hDAQ9xWTsf3ogMemOgCWkGr/lDMgIEDOWjycCen+HSqTBIwKmOZmBVXzg 2qeXOXpaDOcfuxdofAVsYzuCWsHvsbY0vGzctaYYlwyCducMY7B+9R2kzDnmuXOnTkgf r4uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bsipmcyp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x189-20020a6331c6000000b003ab616774basi12717900pgx.799.2022.05.08.19.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:47:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bsipmcyp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1EA47DE00; Sun, 8 May 2022 19:46:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446128AbiEGItl (ORCPT + 99 others); Sat, 7 May 2022 04:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358391AbiEGIti (ORCPT ); Sat, 7 May 2022 04:49:38 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751493CFD6; Sat, 7 May 2022 01:45:53 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id c125so10388780iof.9; Sat, 07 May 2022 01:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3afSRUyqURqd+oMSYddARQ8dgu6A28njYvK52vqSOHE=; b=bsipmcypY4Nr9F6rxV0qF+/yrplNPZ0IzUaGSZBCHKoawh7Fip9CQSr7T9i2N0RRqw iGKGF4cDgKmJ6eoHx6k0ezlu79rFPVUtTqpMoe3f6F7fT6iXT3VJHIN02m0SIWnLfzfF QtRH3qHSNFE0OUI4opgLeKF/ieievW5RVFPYRS42dhcAXTy4TwANrFbcmxpOabTh4gO7 x63GRFN2/z+INwysjq9EKstBst8u2GfgG8WJHmpybw7iW3+LWrryu6tbRd1W47Pqa2lX DtboSk8/TbzieN8V4f3XB+LTsdhXmDjt7XFb/2yZQ1u+nMvgFUH9kFQUwEvRpiaF1AE9 7Tsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3afSRUyqURqd+oMSYddARQ8dgu6A28njYvK52vqSOHE=; b=4rHATvJ+ED6VIipoyyX1mI4eOHqXgMrE9rCNfuj0h4oANzTE5oEXzJsnAZYzocWizj z/0E0fL0SbxNW+TXDnyrbnMh8bFJmhBIs4oRNyBpmduBJvBHSMtoMfmoOilztqZRy8zi KauJbHphOpPUkmJUAxaWFdKKh1M1wvXQZBJVQ2pBmmtxWytUt2ZiBAYCZ7JAEYTw9AMk Drgz3CExxotMhv5DnO4QlQYwk2/J9c8gHjO3jHf7d2Ksubfg23UvEBrv/fq4KlmYnkPF fwXjplEghvL+31Izq9pH7ti086m03R1TVpLfyKBEV8c/Pc+pPIh4Eej1OT2dpNd+Lchl ai/w== X-Gm-Message-State: AOAM533Q/pLcqMyWpl0MRZYLJv/fYGaGH9Yfxnl2yWOVUTnuypDobuT0 2w6ez+lQeJSndjJDt/4KNskTDTD2DAie5w59vuU= X-Received: by 2002:a05:6638:16cf:b0:32b:6ee7:8d7d with SMTP id g15-20020a05663816cf00b0032b6ee78d7dmr3125574jat.256.1651913152910; Sat, 07 May 2022 01:45:52 -0700 (PDT) MIME-Version: 1.0 References: <20220507052451.12890-1-ojeda@kernel.org> <20220507052451.12890-19-ojeda@kernel.org> <202205070114.88C59DF@keescook> In-Reply-To: <202205070114.88C59DF@keescook> From: Miguel Ojeda Date: Sat, 7 May 2022 10:45:41 +0200 Message-ID: Subject: Re: [PATCH v6 18/23] docs: add Rust documentation To: Kees Cook Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux , linux-kernel , Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Michael Ellerman , Sven Van Asbroeck , Wu XiangCheng , Gary Guo , Boris-Chengbiao Zhou , Yuki Okushi , Wei Liu , Daniel Xu , Julian Merkle , Jonathan Corbet , Masahiro Yamada , Michal Marek , Nick Desaulniers , Linux Doc Mailing List , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 7, 2022 at 10:15 AM Kees Cook wrote: > > I like the docs! :) It'll be interesting to see how we can grow > cross-linking between rustdoc and kerndoc. Thanks! For cross-referencing, my plan is to start on the Rust side by allowing to link C files and items (either their generated docs or the source file), since we do that often in the Rust docs. The goal is that one can just write an "intra-doc link" in Rust docs just like any other one, e.g.: /// Wraps the kernel's [`struct sk_buff`]. #[repr(transparent)] pub struct SkBuff(UnsafeCell); so that it is as easy as possible to add them. Cheers, Miguel