Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp904351pxv; Thu, 22 Jul 2021 15:41:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEOWczCyPxFFsk3MjcRwV0xUKVcriYHYar0igQFtAdN4fHe5rOMyVoGE1/N6sp8ylgryb8 X-Received: by 2002:a17:906:14cf:: with SMTP id y15mr1914358ejc.124.1626993718598; Thu, 22 Jul 2021 15:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626993718; cv=none; d=google.com; s=arc-20160816; b=uSWO3Sk/rQnySpgcFHHLgF8N2UsUeho1/Ae5JmrKawIT6tE+Dm7sh7YHJ8B2h+3m/N Fp6GDD2j96+XssaAD8tB0/X2kLq7P4qqoF3NtzlllA/vSYMfcygU4t2ljVJshf8gNC5X 3ZAT551dmI0Yd7IOvVvbOk6H6PMi826vAhmGO/9kYfD0Tey9BivR8ygOdimtAzQl2vJ7 llHOqRobtvqrIWjuhLChUu//uMNxbldFgtzwixaBZvgreH7MNuulMNhzRohbnP2dY1/x RCUDA2+XCX/GG3sAwWy4T8JunTuE8MP/bv4hHhbRSjlJprfmDo+bPGsG2Ot+/xwQLcyD zLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=464kg1T68pC5HwMKv9Atpe0ec1sq9kytcANNnpthBek=; b=tMaywAsp8mvyRDEf9esdtLJAppMbvmd0xRQmpuPAUS+ljoZnMvi5+UVWIR0yzH0rGa aE9l5OSlVXu1H6LXp2siIhjndnvCyIMMKY6gJYCsLsZOfrcMWi0oqhB11w3dZYGWvOcP RDPwpza8YXN5O2De0q87s/6unLobG/uzk1JQfj3c/h2Ly9PalSmMGRb4Gbb7uzR/vqII tTNh/SEygY0sfjIIeOxCDuALjiOpkYjCZegGUDr63xVYXuSogsgeIjZS/cy77EurbuXj RypzrixYp4a+Kq0fwoQWoBkbbwEwNUTOzv+JRo2gNSa3i827I7u2o8GwKXPNV6jdre7Z TfrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="yS/hsbwa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si32039736edt.351.2021.07.22.15.41.35; Thu, 22 Jul 2021 15:41:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="yS/hsbwa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232462AbhGVV7L (ORCPT + 99 others); Thu, 22 Jul 2021 17:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232375AbhGVV7J (ORCPT ); Thu, 22 Jul 2021 17:59:09 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64597C061760 for ; Thu, 22 Jul 2021 15:39:44 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id g23-20020a17090a5797b02901765d605e14so1231616pji.5 for ; Thu, 22 Jul 2021 15:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=464kg1T68pC5HwMKv9Atpe0ec1sq9kytcANNnpthBek=; b=yS/hsbwawQ19QCicvuWG6QDZq0p315I7hOo/EtTmA9IHLQNCHUWlv+iOFl/Ly8W4T5 0At4dkxFnyw1F5/AMAwjsjEFAkxOfYyPOBGS68vy6pk+r1+FsG+aiaoCRqPDaUOgvOYR umlEpbfBd0uf4HJQW1eWcFo0U/E7ZEKM7dhGKoTKtOhLFRsvJuzYzCPTTHqUDYYn3v0w eQJ/PNeDz9gPOhSvqVHwbuSjw3XMo39aqPtmFh5bz0IRu7dxG1b4MNwJXV98y3vClhJL CBDYyPrdKoijtYt2L8LNvOzvKuOX8msDMvBPxhomXUOhvDxXbB9/YJjywRsXe0l8PMht Q3Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=464kg1T68pC5HwMKv9Atpe0ec1sq9kytcANNnpthBek=; b=l4u4l/c5KoeQAFY1EGMOUS1akkcz3OE8pD32krRNqp8GliRXI2EI8CPpaPOox5op9W 9vk9c1Vh+jZW3WFtCuy1vq4pKqKFzxT3caelCIgb6JWo8MIDIG8P2KP3V7VCPXfVzRqy 6cge94LOkdCOSlSBBmTUMYwt/o+Pbzti4b+cvMoGHa6enXDWEpcUGFJrDyd+EBQDy7Bs xw57bgsAUWebk5v++sPPUGOA8QDlAeaG2PuIfQg447d1kyJNIuWFpLXE1QdI8DBDGWJK QFeUGOwU7mcpoqNgGnZQq7KMj4p7gGKoFsIeVgp/sF0nsrm64aNgN8HL+U3IGjwONiNR SGfA== X-Gm-Message-State: AOAM532iobsR20XfyWGzTos40YvxlprvBTv76NjbGN0TKBDD+PpZICNr zh0XfhQCjdNxaBNcnRextclp2Q== X-Received: by 2002:a63:1718:: with SMTP id x24mr2084278pgl.416.1626993583767; Thu, 22 Jul 2021 15:39:43 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id g123sm30673812pfb.187.2021.07.22.15.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 15:39:43 -0700 (PDT) Date: Thu, 22 Jul 2021 15:39:39 -0700 From: Stephen Hemminger To: Luis Chamberlain Cc: gregkh@linuxfoundation.org, tj@kernel.org, shuah@kernel.org, akpm@linux-foundation.org, rafael@kernel.org, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, andriin@fb.com, daniel@iogearbox.net, atenart@kernel.org, alobakin@pm.me, weiwan@google.com, ap420073@gmail.com, jeyu@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, minchan@kernel.org, axboe@kernel.dk, mbenes@suse.com, jpoimboe@redhat.com, tglx@linutronix.de, keescook@chromium.org, jikos@kernel.org, rostedt@goodmis.org, peterz@infradead.org, linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/module: add documentation for try_module_get() Message-ID: <20210722153939.08a6853c@hermes.local> In-Reply-To: <20210722221905.1718213-1-mcgrof@kernel.org> References: <20210722221905.1718213-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Jul 2021 15:19:05 -0700 Luis Chamberlain wrote: > +/** > + * try_module_get - yields to module removal and bumps reference count otherwise > + * @module: the module we should check for You have the right intentions, but this patch needs some work. This looks like a docbook comment format but isn't that format. The first couple of lines need to be reworded to be a complete sentence like the rest. In general best to make new comments the same as existing comments in the same area. It would be better to put this description in the header file where other docbook comments for module API are. See example around module_init() and module_exit(). Ideally, all the api's around module reference counts would be documented there.