Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7864897rwl; Tue, 10 Jan 2023 06:22:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXvvq3HBdFykT5yfV6+1pV9KGUvFxI4/tNI0RnU4wfbI7LzR3rEIgc1Cb0vwiDBA/TLFrAlE X-Received: by 2002:a05:6a21:8dc1:b0:b5:951b:e339 with SMTP id ti1-20020a056a218dc100b000b5951be339mr9644584pzb.21.1673360537849; Tue, 10 Jan 2023 06:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673360537; cv=none; d=google.com; s=arc-20160816; b=QwbY1mvy6Efq8OX8uEb6065UUngcSjoScEvcZEZo12IKKew/Wt7lt2sNr4Aja62EAG ErjcM/fHsIyAvq0HGijtswwRi8MRiGiFKy+3ZK9HvgQTSQ4PsXjoJvvBRcccrhup0KbT MQmfur/YC3c8aT5rifL00ilNK7UHSNnj7YHWNtdCTktpgcDMJJJ9M0gHKM0NOQg3fmmp 5vlncNSP3KJ3n0A2JvO09PpMaYy8mMAU2MCtRteUnYkikRrfImZESCl34r5ZtFU65IBF GTWwd7RwrbkB47QNcIzswdo4dIw7xn5tC4N6cbr9QhxVNShf7qofAGkSHylWxWtyl650 CB0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=jW0MXg4kTHInb0VV64RAk02+ZJUEz3vvMCLSfMJ7bo0=; b=a3AwJE/N40hLsrLYYv/RzCufAca2PKm98lIGVhYuDqjWXRSSylfb/G5Sytnh2CpNQQ iI33UtkpiaMkGePmUym5/sQh5GiSh78dtUIf29P+I25HW/mJy6N99zbe+KpznrIHx9mt PtonvWkgI+vSEtyNNxNESGX6jqfJwqZ9cjGdIhAAg/PyCN1Ry4erR/kWTbzia3mtlFRU NUBDmHQM4oOJEJvedepp7FiTdCgxSR1XbndOysDNF41/Z2ndggrLVE7B9uoWfplDNYFC /szhotcwxzy1EEyQ5uQzZEu6lO75iRz3u5kNBSKJycQlRI3rqUIYQG58bCOP+00TfB6A NmoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQccPgg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l193-20020a6391ca000000b004b51cdfb16esi2604801pge.152.2023.01.10.06.22.00; Tue, 10 Jan 2023 06:22:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQccPgg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232464AbjAJOLi (ORCPT + 55 others); Tue, 10 Jan 2023 09:11:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231612AbjAJOLG (ORCPT ); Tue, 10 Jan 2023 09:11:06 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE12D8D5D7 for ; Tue, 10 Jan 2023 06:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673359778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jW0MXg4kTHInb0VV64RAk02+ZJUEz3vvMCLSfMJ7bo0=; b=UQccPgg6ynzrClRFjSHOKBAbPlbA0W/MKSpf2a/zDXKGDEaWnjmkNOw1W+nYsLGY4OjlLL gI4TQHVmutEm1+MXuqwU5BJhFcCA0ITBzuxCwkzCXKiu3WZGx7Iww/WJEtUzKl2014tj8n aNrA8XqTdmU1+pNoUwHpuXPT74l9W0w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-665-240AZRvcP4uolfqJg_SXKg-1; Tue, 10 Jan 2023 09:09:35 -0500 X-MC-Unique: 240AZRvcP4uolfqJg_SXKg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9A1FE380664A; Tue, 10 Jan 2023 14:09:34 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1A7A82166B26; Tue, 10 Jan 2023 14:09:33 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <97ce37e2fdcfbed29d9467057f0f870359d88b89.1673173920.git.code@siddh.me> References: <97ce37e2fdcfbed29d9467057f0f870359d88b89.1673173920.git.code@siddh.me> To: Siddh Raman Pant Cc: dhowells@redhat.com, Mauro Carvalho Chehab , Randy Dunlap , Jonathan Corbet , "Fabio M. De Francesco" , Eric Dumazet , Christophe JAILLET , Eric Biggers , keyrings , linux-security-module , linux-fsdevel , linux-kernel Subject: Re: [PATCH v3 1/2] include/linux/watch_queue: Improve documentation MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2121104.1673359772.1@warthog.procyon.org.uk> Date: Tue, 10 Jan 2023 14:09:32 +0000 Message-ID: <2121105.1673359772@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Siddh Raman Pant wrote: > +/** > + * struct watch_type_filter - Filter on watch type > + * > + * @type: Type of watch_notification > + * @subtype_filter: Bitmask of subtypes to filter on > + * @info_filter: Filter on watch_notification::info > + * @info_mask: Mask of relevant bits in info_filter > + */ > struct watch_type_filter { > enum watch_notification_type type; > - __u32 subtype_filter[1]; /* Bitmask of subtypes to filter on */ > - __u32 info_filter; /* Filter on watch_notification::info */ > - __u32 info_mask; /* Mask of relevant bits in info_filter */ > + __u32 subtype_filter[1]; > + __u32 info_filter; > + __u32 info_mask; > }; Please don't. The structure is documented fully here: Documentation/core-api/watch_queue.rst See: https://docs.kernel.org/core-api/watch_queue.html#event-filtering The three column approach is much more readable in the code as it doesn't separate the descriptions from the things described. Putting things in columns has been around for around 6000 years. David