From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B19EC43603 for ; Fri, 20 Dec 2019 15:19:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45E322465E for ; Fri, 20 Dec 2019 15:19:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbfLTPTy (ORCPT ); Fri, 20 Dec 2019 10:19:54 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:60324 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727233AbfLTPTy (ORCPT ); Fri, 20 Dec 2019 10:19:54 -0500 Received: from callcc.thunk.org (guestnat-104-133-0-111.corp.google.com [104.133.0.111] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id xBKFJkke015295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Dec 2019 10:19:49 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 8749A420822; Fri, 20 Dec 2019 10:19:45 -0500 (EST) Date: Fri, 20 Dec 2019 10:19:45 -0500 From: "Theodore Y. Ts'o" To: Markus Elfring Cc: linux-doc@vger.kernel.org, kernel-janitors@vger.kernel.org, LKML Subject: Re: Improving documentation for programming interfaces Message-ID: <20191220151945.GD59959@mit.edu> References: <350cd156-9080-24fe-c49e-96e758d3ca45@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <350cd156-9080-24fe-c49e-96e758d3ca45@web.de> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, Dec 20, 2019 at 02:30:10PM +0100, Markus Elfring wrote: > Linux supports some programming interfaces. Several functions are provided > as usual. Their application documentation is an ongoing development challenge. > > Now I would like to clarify possibilities for the specification of desired > information together with data types besides properties which are handled by > the programming language ā€œCā€ so far. > It seems that no customised attributes are supported at the moment. > Thus I imagine to specify helpful annotations as macros. > > Example: > Some functions allocate resources to which a pointer (or handle) is returned. > I would find it nice then if such a pointer would contain also the background > information by which functions the resource should usually be released. > > Can it become easier to determine such data? Markus, It's unclear to me what you are requesting/proposing? Can you be a bit more concrete? - Ted