functionlinux-kernelgpiohardware-port

What is outb() function call in Linux?


Can someone please explain the meaning of

outb(0x10,short_base+2);

I tried figuring out by googling it, but for no use.


Solution

  • System calls are described in section 2 of the man pages: man 2 outb

       void outb(unsigned char value, unsigned short int port);
    
    DESCRIPTION
       This family of functions is used to do low-level port input and  output.
       The  out* functions do port output, the in* functions do port input; the
       b-suffix functions are byte-width and the w-suffix functions word-width;
       the _p-suffix functions pause until the I/O completes.