Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1541755pxb; Thu, 4 Feb 2021 16:13:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxM+1paPHfh7munNDZw6Pk5z7pEkknXXqa2KZPmI0A0A59u1fa/SwrtHQKtYBnx6bwlcprm X-Received: by 2002:a05:6402:3585:: with SMTP id y5mr1012858edc.97.1612484001658; Thu, 04 Feb 2021 16:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612484001; cv=none; d=google.com; s=arc-20160816; b=x9Zrx/NeJeYt++/00VNMZhnUK576ZLd8upPZTpQzdp4hF14P7xWRD4bwhiQ21inMLY 6ST/+BgxIS54XKKA6JVv1i8cW1e2W3X9xMRWM/dfC77I5hS6Yvkuqqaag+cy5hhEHayA 79ResnoN5KcBJtbH3eokL6P78BksDYRO3Zs4wT6f5m7rHNWR1bKn5E1t5rQHCd76vQKE kFOmhjw84qohlWzUnJMjdB9FAoGkYF1XmawjPVu6ctTBnq67V4qa9hIVQvLXwpT5kbn7 RR4g+yWZpluFCk8TNZjxZoq/2cBNLU663a/0utIuSsQcTiSw6uoKxvFNJRgK/4J44Mje 5jRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=2JrbOeo/eqiuhhp4mAU8EY7YTJyXEBNxg+GowildY+Y=; b=rcrr3ixBBniwhdGvpJ6UUYXnDrfXP1Bne9J0Blu2Vh+7XctdUqxi9KPFltlUXADo/I M+d/zCI3H5fm+bRl60T2/fSGa1FJ6DOyRB9GEOhNnkWHJygMESCMug27w3SPdhpI+Rqv Iqxn2PrHqrQDOweQAluzakmiP2xuW7sNVSnG3wwJ8zP4MmyneX7oOqkp9MiV1taee0lC tgs3t27VnFpiVJ9TBRc35NU2Kkw2UDvYBnR9oFi8eIDVfbdLfS/nqJoxOhOFWUxCEenf cyVoE4dC/r4xyx7Xgt8P51iCL8PHweuJLaqqStspeOJJRGrcNhqr3XLIOJD5Bwwd/FjL HQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fmxPYbdX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si4169298ejd.199.2021.02.04.16.12.57; Thu, 04 Feb 2021 16:13:21 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=fmxPYbdX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236303AbhBDNZb (ORCPT + 99 others); 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-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/