Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1348379ybn; Wed, 2 Oct 2019 14:49:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIkxkYK6xCLKGrgtDHUMzUTJsswmbxYi4MSxvDfCn0o/GWSljY/HEx/rUdAHCfDW28tPzr X-Received: by 2002:a17:906:9381:: with SMTP id l1mr5007047ejx.93.1570052994557; Wed, 02 Oct 2019 14:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570052994; cv=none; d=google.com; s=arc-20160816; b=J1yYKXQ7m3idmSE+44gaQl19gCxq2/NlBYFiG60z7m/Iu9j32aasUL2MsGo+AMGCX6 jHG/irOSERAnEjftJg7bppwxEtRYOb6jmEBbVnyHatu6uK1wnQijqkgXKPXDqt/84eJE eZFrrIZa/A7uCpC0IJFO+v9k025ZeqsY2RvC+1GEX2YIygH0/Xt/jgaNaqNutsIihu0O R9Y+9wJy1EVsktQNUjDeMAgwbgVmQ7Fwee1x+/Dmv6qOMHRsYQs06N1lNcxqW6QjBMJa xM2F0HWdW7vtmJC74iHVNiWQxb9DdwdQhVQ2F3jtNKwsKPwuFVL5cjaZAKPq1D1wkNRW dWOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=thPrT7yVrWLzrR73UMdFtFROCIaln63nE+Eo5yiQpnk=; b=Owrea6uRzFBZ27d1QxY4KYi+tGM/miie1Z77TCSc6tczkSuPs4gHuaoo+EQXEE4PeE ERLZt09/bd7LXv/zxYPFT1ejeLzoDTDdoeW0Y+EaqvnEcF070UXxf/1QO7K1a9t+VnfK iyJWmleIw5XftzaUCW8ewWP7hPOVO88XoBuc08i2UIWHQ5/Watk0aLH4E0anFsDWcm8b iIooveAsrvtlp5R/OjFnYE1FyM8GsgQfLWY63rd4CJmZXVIEC/+BdBN39/ufiIlNCX75 ueHIdE5tl0EmO1o1LbAYIGzqWmAQdzT9E+YqoqoQDvSr4PkcZl/OryQJd0PN4HK8qNaZ 2/vA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l45si289492edb.18.2019.10.02.14.49.30; Wed, 02 Oct 2019 14:49:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727757AbfJBU1V (ORCPT + 99 others); Wed, 2 Oct 2019 16:27:21 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:47025 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfJBU1U (ORCPT ); Wed, 2 Oct 2019 16:27:20 -0400 Received: by mail-pg1-f193.google.com with SMTP id a3so202486pgm.13; Wed, 02 Oct 2019 13:27:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=thPrT7yVrWLzrR73UMdFtFROCIaln63nE+Eo5yiQpnk=; b=XQ0qA9axYqr+cZUB07M7WSNATJN1SmrpFTyGzSN8jzB4GD+w2R3XTi3ew8RDCABb+0 FXL2G7faqHi2MX2SAdi345qGoyUX8kIqcUKXxq9BBa2urZJuuGJ9Mwl7BraQZLFqgaHE dXnD4LTodzyH/39+foGZhDkAUiF6oIMS8ply+TumrpQwSHk0nf27fUX+KvX1deDjd+zJ J+nw6RdciZ7fO/s7n1siLTCC/D1dI5mtfNn5EL0bKw2denz44j+EIlm3pBr1Re3KPsaa agJ0ndGWuymMRTR1CiQXz5VwfLewK6rS8+oEofqeyjdepuJQy0Lz7RRF/gaXo+nFQeXE rjTA== X-Gm-Message-State: APjAAAVt9VfKI9BSifou+qw4N27Vnto1MULaETEurgi6qLLk5MeZOsQP zuWotlCGUnPAMZ/S7+lHUExhZqA5 X-Received: by 2002:a63:e853:: with SMTP id a19mr5488996pgk.296.1570048038505; Wed, 02 Oct 2019 13:27:18 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id l62sm311480pfl.167.2019.10.02.13.27.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Oct 2019 13:27:17 -0700 (PDT) Subject: Re: [PATCH 1/1] blk-mq: fill header with kernel-doc To: Jens Axboe , =?UTF-8?Q?Andr=c3=a9_Almeida?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, krisman@collabora.com References: <20190930194846.23141-1-andrealmeid@collabora.com> From: Bart Van Assche Message-ID: Date: Wed, 2 Oct 2019 13:27:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/1/19 8:33 PM, Jens Axboe wrote: > On 9/30/19 1:48 PM, André Almeida wrote: >> - >> +/** >> + * struct blk_mq_ops - list of callback functions for blk-mq drivers >> + */ >> struct blk_mq_ops { >> - /* >> - * Queue request >> + /** >> + * @queue_rq: Queue a new request from block IO. >> */ >> queue_rq_fn *queue_rq; >> >> - /* >> - * If a driver uses bd->last to judge when to submit requests to >> - * hardware, it must define this function. In case of errors that >> - * make us stop issuing further requests, this hook serves the >> + /** >> + * @commit_rqs: If a driver uses bd->last to judge when to submit >> + * requests to hardware, it must define this function. In case of errors >> + * that make us stop issuing further requests, this hook serves the >> * purpose of kicking the hardware (which the last request otherwise >> * would have done). >> */ >> commit_rqs_fn *commit_rqs; > > Stuff like this is MUCH better. Why isn't all of it done like this? Hi Jens, If you prefer this style you may want to update Documentation/doc-guide/kernel-doc.rst. I think that document recommends another style for documenting struct members, maybe because that style requires less vertical space: ------------------------------------------------------------------------ Structure, union, and enumeration documentation ----------------------------------------------- The general format of a struct, union, and enum kernel-doc comment is:: /** * struct struct_name - Brief description. * @member1: Description of member1. * @member2: Description of member2. * One can provide multiple line descriptions * for members. * * Description of the structure. */ You can replace the ``struct`` in the above example with ``union`` or ``enum`` to describe unions or enums. ``member`` is used to mean struct and union member names as well as enumerations in an enum. The brief description following the structure name may span multiple lines, and ends with a member description, a blank comment line, or the end of the comment block. ------------------------------------------------------------------------ Thanks, Bart.