All of lore.kernel.org
 help / color / mirror / Atom feed
* outb.2: What to do with prototypes?
@ 2021-02-04 12:59 Alejandro Colomar (man-pages)
  2021-02-04 13:24 ` Alejandro Colomar (man-pages)
  2021-02-05  8:57 ` Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 3+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-02-04 12:59 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man

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

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: outb.2: What to do with prototypes?
  2021-02-04 12:59 outb.2: What to do with prototypes? Alejandro Colomar (man-pages)
@ 2021-02-04 13:24 ` Alejandro Colomar (man-pages)
  2021-02-05  8:57 ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 3+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-02-04 13:24 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man, linux-kernel

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: outb.2: What to do with prototypes?
  2021-02-04 12:59 outb.2: What to do with prototypes? Alejandro Colomar (man-pages)
  2021-02-04 13:24 ` Alejandro Colomar (man-pages)
@ 2021-02-05  8:57 ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2021-02-05  8:57 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

Hello Alex,

On Thu, 4 Feb 2021 at 13:59, Alejandro Colomar (man-pages)
<alx.manpages@gmail.com> 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?

Are the glibc APIs wrappers for the kernel interpreters?

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-05  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 12:59 outb.2: What to do with prototypes? Alejandro Colomar (man-pages)
2021-02-04 13:24 ` Alejandro Colomar (man-pages)
2021-02-05  8:57 ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.