Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Intro(K) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     INTRO(K)                  UNIX System V                  INTRO(K)



     Name
          Intro - lists manual page references

     Description
          This section describes the manual page on which each kernel
          routine is found.

          The following table summarizes the kernel routines.  The
          columns indicate the routine name, the manual page on which
          the routine appears, a description, and a code that
          indicates the following values:

        _______________________________________________________________
       | Letter|  Meaning                                             |
       |_______|______________________________________________________|
       |   B   |  Use this routine only in a block driver             |
       |   C   |  Use this routine only in a character driver         |
       |   G   |  General; can be used in a block or character driver |
       |   I   |  Routine can be called from an initialization routine|
       |   X   |  Routine can be called from an interrupt routine     |
       |   M   |  Macro                                               |
       |   A   |  Written in Assembly language                        |
       |_______|______________________________________________________|

          The section (K) routines are summarized in the following
          table:

           ___________________________________________________________
          | Kernel | Manual |                                 |      |
          | Routine| Page   | Description                     | Code |
          |________|________|_________________________________|______|
          | bcopy  | bcopy  | Copies bytes in kernel space    | GAIX |
          | brelse | brelse | Releases a block buffer         | B    |
          | btoc   | btoc   | Returns number of pages (clicks)| GMIX |
          | btoms  | btoc   | Returns number of sectors       | GMIX |
          | bzero  | bzero  | Sets memory locations to 0s     | GAIX |
          | canon  | canon  | Processes raw input data from   | CA   |
          |        |        | tty device                      |      |
          | cmn_err| cmn_err| Displays message or panics the  | GIX  |
          |        |        | system                          |      |
          | copyin | copyin | Copies bytes from user to kernel| GA   |
          |        |        | space                           |      |
          | copyio | copyio | Copies bytes to/from physical   | G    |
          |        |        | address                         |      |
          | copyout| copyin | Copies bytes from kernel to user| GA   |
          |        |        | space                           |      |
          | cpass  | cpass  | Passes character to user        | G    |
          | ctob   | btoc   | Returns number of bytes         | GMIX |
          |________|________|_________________________________|______|

       _________________________________________________________________
      | Kernel     | Manual     |                                |     |
      | Routine    | Page       | Description                    | Code|
      |____________|____________|________________________________|_____|
      | db_alloc   | db_alloc   | Allocates physically contiguous| GI  |
      |            |            | memory                         |     |
      | db_free    | db_alloc   | Frees physically contiguous    | GI  |
      |            |            | memory                         |     |
      | db_read    | db_read    | Transfers data from kernel     | G   |
      |            |            | virtual to physical address    |     |
      | db_write   | db_write   | Transfers data from physical to| G   |
      |            |            | kernel virtual address         |     |
      | delay      | delay      | Delays process execution for   | G   |
      |            |            | specified time                 |     |
      | deverr     | deverr     | Prints message on console      | B   |
      | disksort   | disksort   | Adds block I/O request to      | BX  |
      |            |            | device's queue                 |     |
      | DISPLAYED  | video      | Returns TRUE if screen         | CIX |
      |            |            | is displayed                   |     |
      | dma_alloc  | dma_alloc  | Allocates a DMA channel        | GIX |
      | dma_breakup| dma_breakup| Sizes request into 512-byte    | B   |
      |            |            | blocks                         |     |
      | dma_enable | dma_enable | Begins DMA transfer            | GIX |
      | dma_param  | dma_param  | Sets up a DMA controller chip  | GIX |
      |            |            | for DMA transfer               |     |
      | dma_relse  | dma_relse  | Releases previously allocated  | GIX |
      |            |            | DMA channel                    |     |
      | dma_resid  | dma_resid  | Returns bytes not transferred  | G   |
      |            |            | for DMA request                |     |
      | dma_start  | dma_start  | Begins DMA transfer            | G   |
      | emdupmap   | emdupmap   | Duplicates channel mapping     | G   |
      | emunmap    | emunmap    | Disables mapping on a channel  | G   |
      | flushtlb   | flushtlb   | Flushes the translate lookaside| GAIX|
      |            |            | buffer (TLB)                   |     |
      | fubyte     | fubyte     | Gets a character from user data| GA  |
      |            |            | space                          |     |
      | fuword     | fuword     | Gets a 32-bit word from user   | GA  |
      |            |            | data space                     |     |
      | getablk    | geteblk    | Gets empty buffer from freelist| B   |
      | getc       | getc       | Gets a character from a clist  | C   |
      | getcb      | getc       | Gets cblock from clist         | C   |
      | getcbp     | getc       | Gets characters from a clist   | C   |
      | getcf      | getc       | Gets a cblock from free list   | C   |
      | getchar    | getchar    | Gets one character of input    | G   |
      | geteblk    | geteblk    | Gets empty buffer from freelist| B   |
      | inb        | inb        | Reads a byte from a physical   | GAIX|
      |            |            | I/O address                    |     |
      | ind        | ind        | Reads double words from a      | GAIX|
      |            |            | physical I/O address           |     |
      |____________|____________|________________________________|_____|

     ________________________________________________________________
    | Kernel     | Manual     |                               |     |
    | Routine    | Page       | Description                   | Code|
    |____________|____________|_______________________________|_____|
    | inw        | inw        | Reads a 16-bit word from a    | GAIX|
    |            |            | physical I/O address          |     |
    | iodone     | iodone     | Signals I/O completion        | BIX |
    | iowait     | iowait     | Wait for I/O completion       | B   |
    | ktop       | ptok       | Returns physical address from | GMIX|
    |            |            | kernel                        |     |
    | longjmp    | longjmp    | Restores previously saved     | GA  |
    |            |            | process context               |     |
    | major      | major      | Returns major number from the | GM  |
    |            |            | device number                 |     |
    | makedev    | major      | Returns device number from    | GM  |
    |            |            | major and minor numbers       |     |
    | memget     | memget     | Allocates contiguous memory   | GI  |
    |            |            | at initialization             |     |
    | minor      | major      | Returns minor device number   | GM  |
    |            |            | from the device number        |     |
    | outb       | inb        | Writes a byte to an           | GAIX|
    |            |            | I/O address                   |     |
    | outd       | ind        | Writes double words to a      | GAIX|
    |            |            | physical I/O address          |     |
    | outw       | inw        | Writes a 16-bit word to a     | GAIX|
    |            |            | physical I/O address          |     |
    | paddr      | paddr      | Returns virtual address       | BIX |
    |            |            | pointer to block data         |     |
    | panic      | panic      | Halts the system              | GIX |
    | passc      | cpass      | Passes character between user | G   |
    |            |            | space and the kernel          |     |
    | physck     | physio     | Verifies I/O request size     | B   |
    | physio     | physio     | Performs physical I/O         | B   |
    | pio_breakup| pio_breakup| Breaks up programmed I/O      | B   |
    |            |            | request                       |     |
    | printcfg   | printcfg   | Displays driver               | GI  |
    |            |            | initialization message        |     |
    | printf     | printf     | Prints a message on console   | GIX |
    | psignal    | psignal    | Sends signal to a process     | CIX |
    | ptok       | ptok       | Returns kernel address from   | GMIX|
    |            |            | physical address              |     |
    | putc       | putc       | Puts character on clist       | C   |
    | putcbp     | putc       | Puts characters on clist      | C   |
    | putcb      | putc       | Puts cblock on clist          | C   |
    | putcf      | putc       | Puts cblock on free list      | C   |
    | putchar    | putchar    | Prints a character on console | G   |
    | repinsb    | repinsb    | Moves bytes to memory from I/O| GA  |
    |            |            | address                       |     |
    |____________|____________|_______________________________|_____|

     ___________________________________________________________________
    | Kernel          | Manual  |                                |     |
    | Routine         | Page    | Description                    | Code|
    |________________ |________ |________________________________|_____|
    | repinsd         | repinsb | Moves words to memory from I/O | GA  |
    |                 |         | address                        |     |
    | repinsw         | repinsb | Moves double words to memory   | GA  |
    |                 |         | from I/O address               |     |
    | repoutsb        | repinsb | Moves bytes from memory to I/O | GA  |
    |                 |         | address                        |     |
    | repoutsd        | repinsb | Moves words from memory to I/O | GA  |
    |                 |         | address                        |     |
    | repoutsw        | repinsb | Moves double words from memory | GA  |
    |                 |         | to I/O address                 |     |
    | scsi_get_gen_cmd| scsi    | Fills a command block          | GIX |
    | scsi_getdev     | scsi    | Gets SCSI device number        | GIX |
    | scsi_mkadr3     | scsi    | Makes 3-byte address           | GIX |
    | scsi_s2tos      | scsi    | Converts 2 bytes to short      | GIX |
    | scsi_s3tol      | scsi    | Converts 3 bytes to long       | GIX |
    | scsi_stok       | scsi    | Converts 3 bytes to address    | GIX |
    | scsi_swap4      | scsi    | Swaps 4 bytes                  | GIX |
    | selfailure      | select  | Fails condition                | G   |
    | selsuccess      | select  | Okays condition                | G   |
    | selwakeup       | select  | Okays failed condition         | G   |
    | seterror        | seterror| Sets u.u_error with error code | G   |
    | signal          | signal  | Sends a signal to a process    | CIX |
    | scsi_stol       | scsi    | Converts 4 bytes to long       | GIX |
    | sleep           | sleep   | Suspends processing temporarily| G   |
    | spl0            | spl     | Permits all interrupts         | GAIX|
    | spl1            | spl     | Blocks context switch interrupt| GAIX|
    | spl2            | spl     | Blocks level 2 interrupts      | GAIX|
    | spl3            | spl     | Blocks level 3 interrupts      | GAIX|
    | spl4            | spl     | Blocks level 4 interrupts      | GAIX|
    | spl5            | spl     | Blocks block device interrupts | GAIX|
    | spl6            | spl     | Blocks character device and the| GAIX|
    |                 |         | clock's interrupts             |     |
    | spl7            | spl     | Blocks all interrupts          | GAIX|
    | splbuf          | spl     | Blocks buf access interrupts   | GAIX|
    | splcli          | spl     | Blocks clist access interrupts | GAIX|
    | splhi           | spl     | Blocks all interrupts          | GAIX|
    | splni           | spl     | Blocks network interrupts      | GAIX|
    | splpp           | spl     | Blocks ports board interrupts  | GAIX|
    | spltty          | spl     | Blocks tty interrupts          | GAIX|
    | splx            | spl     | Enables previous spl level     | GAIX|
    | sptalloc        | sptalloc| Allocates temporary memory or  | GI  |
    |                 |         | maps a device into memory      |     |
    | sptfree         | sptfree | Releases memory previously     | GI  |
    |                 |         | allocated with sptalloc        |     |
    |_________________|_________|________________________________|_____|
     __________________________________________________________________
    | Kernel       | Manual |                                   |     |
    | Routine      | Page   | Description                       | Code|
    |______________|________|___________________________________|_____|
    | subyte       | subyte | Stores a character in user data   | GA  |
    |              |        | space                             |     |
    | suser        | suser  | Determines if current user is the | G   |
    |              |        | super-user                        |     |
    | suword       | suword | Stores a 32-bit word in user data | GA  |
    |              |        | space                             |     |
    | timeout      | timeout| Schedules a time to execute a     | GX  |
    |              |        | routine                           |     |
    | ttclose      | tty    | Closes access to tty device       | C   |
    | ttin         | tty    | Gets data from receive buffer     | CX  |
    | ttinit       | tty    | Initializes line discipline       | C   |
    | ttiocom      | ttiocom| Interpret tty driver I/O control  | C   |
    |              |        | commands                          |     |
    | ttiwake      | tty    | Awakens input requests            | CX  |
    | ttopen       | tty    | Opens tty device                  | C   |
    | ttout        | tty    | Puts data into transmit buffer    | CX  |
    | ttowake      | tty    | Awakens output requests           | CX  |
    | ttrdchk      | tty    | Verifies characters to read       | C   |
    | ttread       | tty    | Copies tty data to user space     | C   |
    | ttrstrt      | tty    | Restarts tty access               | C   |
    | ttselect     | tty    | Ensures read or write w/o blocking| C   |
    | tttimeo      | tty    | Times input request               | C   |
    | ttwrite      | tty    | Copies data from user             | C   |
    | ttxput       | tty    | Puts data into output queue       | C   |
    | ttyflush     | tty    | Releases queue contents           | C   |
    | ttywait      | tty    | Waits for UART to drain           | C   |
    | untimeout    | timeout| Cancel scheduled timeout request  | GX  |
    | vasbind      | vas    | Binds virtual address to physical | GI  |
    | vasmalloc    | vas    | Allocates virtual user memory     | GI  |
    | vasmapped    | vas    | Releases allocated memory         | GI  |
    | vasunbind    | vas    | Unbinds bound memory              | GI  |
    | viddoio      | video  | Supports I/O controls             | C   |
    | vidinitscreen| video  | Initializes multiscreen           | CI  |
    | vidmap       | video  | Maps memory                       | CIX |
    | vidresscreen | video  | Restores screen                   | CX  |
    | vidsavscreen | video  | Saves screen                      | CX  |
    | vidumapinit  | video  | Maps user memory                  | CI  |
    | vidunmap     | video  | Unmaps memory                     | CIX |
    | vtop         | vtop   | Convert a virtual address to a    | GX  |
    |              |        | physical address                  |     |
    | wakeup       | wakeup | Wakes up a sleeping process       | GX  |
    |______________|________|___________________________________|_____|

                                                    (printed 7/19/89)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026