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=-4.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 1B5D9C433E6 for ; Thu, 4 Feb 2021 13:25:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C030B64F53 for ; Thu, 4 Feb 2021 13:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236308AbhBDNZb (ORCPT ); Thu, 4 Feb 2021 08:25:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235605AbhBDNZa (ORCPT ); Thu, 4 Feb 2021 08:25:30 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA01AC0613D6; Thu, 4 Feb 2021 05:24:49 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id v15so3498433wrx.4; Thu, 04 Feb 2021 05:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2JrbOeo/eqiuhhp4mAU8EY7YTJyXEBNxg+GowildY+Y=; b=fmxPYbdXNhu8Nzj05yTd9MFre9DKptuDsTCJmhfyOwyEuhOwmQcNDj32U4pAQpiVAk Nps2u1b6GFyatQTlI7Z21dFsiUlUdZDTpfLc5qVxfh5mPdjvR3xE2YR68i34EhScw7yx XONPWHHQ8CWvqqreKeo6IGwQ9KxgxnPRHlKAJo/EsU2cTqQLIFQwr5j3siRSHlaWg2Z4 5seuVDtEHHpEWR1Uw97tm+qZOBlGDr2ghW/fNOmOnu1ACR/4xHo6IuNo5cvZqxaP+meg buLxYDyi5fgCybS5PEooQSOq0f+/97tQJGZu9Wnqft7GcJjVH/0HlthH2vzRG2L2+Xc4 xpPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2JrbOeo/eqiuhhp4mAU8EY7YTJyXEBNxg+GowildY+Y=; b=taekPeIkNmxvmtYYMlKjThfwNcOZJaKAZ2ijF1PXbAzd2cbIvvos7YbdhbyfUOXghF WLfGeUxQHnuxyKnWObgF8H+MFjYmBQV8tnE7J3ECwdIB5o1HEFc+YXS1mV2z960a5Hdc hYByrvn/bxVuTcdiLZVvi0Y43dSW0VyHZTIVw7rl3F9gUQ2MokKgEShXSLcWHGi+bt18 RQ+lPjckhd7Cy/WMidajwpWFgBK99eH9m48fv5lCV+kxnwiZOhwColGOBBvcmwgFNHjX jxOLVksy8ZUmYNPNb9sqnApGCLQ4LzlXihCHqzHk5vg2o56rxpbz/+xqgEAX1hv0x2po j1Ew== X-Gm-Message-State: AOAM530INxJgA3TFwT+ThRwkOHJnyB8+Bo/XUUgOT0nI9JliSCnDRqxf E0vCyVuPIDin5gLuqJUhDtYKaAnGzcg= X-Google-Smtp-Source: ABdhPJzMqgdrN9PXO+YaFnuK/OyTsth1c7LFxbqA+hx9vhHGLsnHT4tb0Vkill50W+l9KA4KWFobKQ== X-Received: by 2002:adf:f303:: with SMTP id i3mr9261684wro.60.1612445088600; Thu, 04 Feb 2021 05:24:48 -0800 (PST) Received: from [192.168.1.143] ([170.253.51.130]) by smtp.gmail.com with UTF8SMTPSA id l11sm7721279wrt.23.2021.02.04.05.24.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Feb 2021 05:24:48 -0800 (PST) Subject: Re: outb.2: What to do with prototypes? From: "Alejandro Colomar (man-pages)" To: "Michael Kerrisk (man-pages)" Cc: linux-man , linux-kernel References: <6336a172-6bc5-bad8-21a4-0309a83728e7@gmail.com> Message-ID: <81b3d032-b862-f255-1e58-2c319772713f@gmail.com> Date: Thu, 4 Feb 2021 14:24:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 In-Reply-To: <6336a172-6bc5-bad8-21a4-0309a83728e7@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/4/21 1:59 PM, Alejandro Colomar (man-pages) wrote: > Hi Michael, > > What would you do with the prototypes in outb.2? > They are different in glibc and the kernel. > However, since these are functions to be called mostly withing the > kernel, the kernel prototype is more important. Would you use the glibc > one in SYNOPSIS, and then a C library / kernel differences with the > kernel prototypes? > > Thanks, > > Alex > BTW, the declarations of those functions in the kernel are a bit different from the rest. My grep_syscall function couldn't find them. There's no sys_inb, nor does it use SYSCALL_DEFINE?(). There are a lot of different declarations like plain 'inb' (some static, some extern). Where is the actual syscall defined? Thanks, Alex -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/