BOOK.PS
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:2328k
- (not)126 2328 A
- (ready\n",)378 2496 A
- (w_name());)420 2916 A
- 3690 V
- (10781)210 648 A
- (return(ERR);)504 1362 A
- 3780 V
- (10782)210 648 A
- 1110(})S
- 3870 V
- (10783)210 648 A
- 3960 V
- (10784)210 648 A
- 1110(/*)S
- (Select)252 1236 A
- (drive.)252 1530 A
- 1824(*/)S
- 4050 V
- (10785)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_LDH,)336 1782 A
- (cmd->ldh);)420 2160 A
- 4140 V
- (10786)210 648 A
- 4230 V
- (10787)210 648 A
- 1110(if)S
- ((!waitfor(STATUS_BSY,)882 1236 A
- (0)))126 2160 A
- 2328({)S
- 4320 V
- (10788)210 648 A
- (printf("%s:)462 1362 A
- (drive)210 1866 A
- (not)126 2118 A
- (ready\n",)378 2286 A
- (w_name());)420 2706 A
- 4410 V
- (10789)210 648 A
- (return(ERR);)504 1362 A
- 4500 V
- (10790)210 648 A
- 1110(})S
- 4590 V
- (10791)210 648 A
- 4680 V
- (10792)210 648 A
- 1110(/*)S
- (Schedule)336 1236 A
- 1614(a)S
- (wakeup)252 1698 A
- (call,)210 1992 A
- (some)168 2244 A
- (controllers)462 2454 A
- (are)126 2958 A
- (flaky.)252 3126 A
- 3420(*/)S
- 4770 V
- (10793)210 648 A
- (clock_mess(WAKEUP,)756 1110 A
- (w_timeout);)462 1908 A
- 4860 V
- (10794)210 648 A
- 4950 V
- (10795)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_CTL,)336 1782 A
- (wn->pheads)420 2160 A
- 2622(>=)S
- 2748(8)S
- 2832(?)S
- (CTL_EIGHTHEADS)588 2916 A
- 3546(:)S
- (0);)126 3630 A
- 5040 V
- (10796)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_PRECOMP,)504 1782 A
- (cmd->precomp);)588 2328 A
- 5130 V
- (10797)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_COUNT,)420 1782 A
- (cmd->count);)504 2244 A
- 5220 V
- (10798)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_SECTOR,)462 1782 A
- (cmd->sector);)546 2286 A
- 5310 V
- (10799)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_CYL_LO,)462 1782 A
- (cmd->cyl_lo);)546 2286 A
- 5400 V
- (10800)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_CYL_HI,)462 1782 A
- (cmd->cyl_hi);)546 2286 A
- 5490 V
- (10801)210 648 A
- (lock();)294 1110 A
- 5580 V
- (10802)210 648 A
- (out_byte(base)546 1110 A
- 1698(+)S
- (REG_COMMAND,)504 1782 A
- (cmd->command);)588 2328 A
- 5670 V
- (10803)210 648 A
- (w_command)378 1110 A
- 1530(=)S
- (cmd->command;)546 1614 A
- 5760 V
- (10804)210 648 A
- (w_status)336 1110 A
- 1488(=)S
- (STATUS_BSY;)462 1572 A
- 5850 V
- (10805)210 648 A
- (unlock();)378 1110 A
- 5940 V
- (10806)210 648 A
- (return(OK);)462 1110 A
- 6030 V
- (10807)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 141 141
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (141)180 4248 A
- 900 V
- 7 LST
- (10810)210 648 A
- (/*===========================================================================*)3276 1026 A
- 990 V
- (10811)210 648 A
- 1068(*)S
- (w_need_reset)504 2370 A
- 4260(*)S
- 1080 V
- (10812)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1170 V
- (10813)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (w_need_reset())588 1572 A
- 1260 V
- (10814)210 648 A
- 1026({)S
- 1350 V
- (10815)210 648 A
- 1026(/*)S
- (The)126 1152 A
- (controller)420 1320 A
- (needs)210 1782 A
- 2034(to)S
- 2160(be)S
- (reset.)252 2286 A
- 2580(*/)S
- 1440 V
- (10816)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn;)168 1614 A
- 1530 V
- (10817)210 648 A
- 1620 V
- (10818)210 648 A
- (for)126 1110 A
- ((wn)126 1278 A
- 1446(=)S
- (wini;)210 1530 A
- 1782(wn)S
- 1908(<)S
- (&wini[MAX_DRIVES];)756 1992 A
- (wn++))210 2790 A
- 3042({)S
- 1710 V
- (10819)210 648 A
- (wn->state)378 1362 A
- 1782(|=)S
- (DEAF;)210 1908 A
- 1800 V
- (10820)210 648 A
- (wn->state)378 1362 A
- 1782(&=)S
- (304INITIALIZED;)546 1908 A
- 1890 V
- (10821)210 648 A
- 1110(})S
- 1980 V
- (10822)210 648 A
- 1026(})S
- 2250 V
- (10825)210 648 A
- (/*============================================================================*)3318 1026 A
- 2340 V
- (10826)210 648 A
- 1068(*)S
- (w_do_close)420 2370 A
- 4302(*)S
- 2430 V
- (10827)210 648 A
- (*============================================================================*/)3318 1068 A
- 2520 V
- (10828)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_do_close(dp,)588 1530 A
- (m_ptr))252 2160 A
- 2610 V
- (10829)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 2700 V
- (10830)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2790 V
- (10831)210 648 A
- 1026({)S
- 2880 V
- (10832)210 648 A
- 1026(/*)S
- (Device)252 1152 A
- (close:)252 1446 A
- (Release)294 1740 A
- 2076(a)S
- (device.)294 2160 A
- 2496(*/)S
- 2970 V
- (10833)210 648 A
- 3060 V
- (10834)210 648 A
- 1110(if)S
- ((w_prepare(m_ptr->DEVICE))1050 1236 A
- 2328(==)S
- (NIL_DEV))336 2454 A
- (return(ENXIO);)588 2832 A
- 3150 V
- (10835)210 648 A
- (w_wn->open_ct--;)672 1110 A
- 3240 V
- (10836)210 648 A
- (return(OK);)462 1110 A
- 3330 V
- (10837)210 648 A
- 1026(})S
- 3600 V
- (10840)210 648 A
- (/*============================================================================*)3318 1026 A
- 3690 V
- (10841)210 648 A
- 1068(*)S
- (com_simple)420 2370 A
- 4302(*)S
- 3780 V
- (10842)210 648 A
- (*============================================================================*/)3318 1068 A
- 3870 V
- (10843)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (com_simple(cmd))630 1530 A
- 3960 V
- (10844)210 648 A
- (struct)252 1026 A
- (command)294 1320 A
- (*cmd;)210 1656 A
- 2370(/*)S
- (Command)294 2496 A
- (block)210 2832 A
- 3084(*/)S
- 4050 V
- (10845)210 648 A
- 1026({)S
- 4140 V
- (10846)210 648 A
- 1026(/*)S
- 1152(A)S
- (simple)252 1236 A
- (controller)420 1530 A
- (command,)336 1992 A
- (only)168 2370 A
- (one)126 2580 A
- (interrupt)378 2748 A
- (and)126 3168 A
- 3336(no)S
- (data-out)336 3462 A
- (phase.)252 3840 A
- 4134(*/)S
- 4230 V
- (10847)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 4320 V
- (10848)210 648 A
- 4410 V
- (10849)210 648 A
- 1110(if)S
- (((r)126 1236 A
- 1404(=)S
- (com_out(cmd)))546 1488 A
- 2076(==)S
- (OK))126 2202 A
- 2370(r)S
- 2454(=)S
- (w_intr_wait();)588 2538 A
- 4500 V
- (10850)210 648 A
- (w_command)378 1110 A
- 1530(=)S
- (CMD_IDLE;)378 1614 A
- 4590 V
- (10851)210 648 A
- (return(r);)420 1110 A
- 4680 V
- (10852)210 648 A
- 1026(})S
- 4950 V
- (10855)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5040 V
- (10856)210 648 A
- 1068(*)S
- (w_timeout)378 2370 A
- 4260(*)S
- 5130 V
- (10857)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5220 V
- (10858)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (w_timeout())462 1572 A
- 5310 V
- (10859)210 648 A
- 1026({)S
- 5400 V
- (10860)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 5490 V
- (10861)210 648 A
- 5580 V
- (10862)210 648 A
- (switch)252 1110 A
- ((w_command))462 1404 A
- 1908({)S
- 5670 V
- (10863)210 648 A
- (case)168 1110 A
- (CMD_IDLE:)378 1320 A
- 5760 V
- (10864)210 648 A
- (break;)252 1362 A
- 2034(/*)S
- (fine)168 2160 A
- 2370(*/)S
- 5850 V
- (10865)210 648 A
- (case)168 1110 A
- (CMD_READ:)378 1320 A
- 5940 V
- (10866)210 648 A
- (case)168 1110 A
- (CMD_WRITE:)420 1320 A
- 6030 V
- (10867)210 648 A
- 1362(/*)S
- (Impossible,)462 1488 A
- (but)126 1992 A
- (not)126 2160 A
- 2328(on)S
- (PC's:)210 2454 A
- (The)126 2748 A
- (controller)420 2916 A
- (does)168 3378 A
- (not)126 3588 A
- (respond.)336 3756 A
- 4134(*/)S
- 6120 V
- (10868)210 648 A
- 6210 V
- (10869)210 648 A
- 1362(/*)S
- (Limiting)336 1488 A
- (multisector)462 1866 A
- (I/O)126 2370 A
- (seems)210 2538 A
- 2790(to)S
- (help.)210 2916 A
- 3168(*/)S
- 8418 V
- EP
- %%Page: 142 142
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (142)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10870)210 648 A
- 1362(if)S
- ((wn->max_count)588 1488 A
- 2118(>)S
- 2202(8)S
- 2286(*)S
- (SECTOR_SIZE))504 2370 A
- 2916({)S
- 990 V
- (10871)210 648 A
- (wn->max_count)546 1698 A
- 2286(=)S
- 2370(8)S
- 2454(*)S
- (SECTOR_SIZE;)504 2538 A
- 1080 V
- (10872)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 1170 V
- (10873)210 648 A
- (wn->max_count)546 1698 A
- 2286(=)S
- (SECTOR_SIZE;)504 2370 A
- 1260 V
- (10874)210 648 A
- 1362(})S
- 1350 V
- (10875)210 648 A
- (/*FALL)252 1362 A
- (THROUGH*/)378 1656 A
- 1440 V
- (10876)210 648 A
- (default:)336 1110 A
- 1530 V
- (10877)210 648 A
- 1362(/*)S
- (Some)168 1488 A
- (other)210 1698 A
- (command.)336 1950 A
- 2328(*/)S
- 1620 V
- (10878)210 648 A
- (printf("%s:)462 1362 A
- (timeout)294 1866 A
- 2202(on)S
- (command)294 2328 A
- (%02x\n",)336 2664 A
- (w_name(),)378 3042 A
- (w_command);)462 3462 A
- 1710 V
- (10879)210 648 A
- (w_need_reset();)630 1362 A
- 1800 V
- (10880)210 648 A
- (w_status)336 1362 A
- 1740(=)S
- 1824(0;)S
- 1890 V
- (10881)210 648 A
- (interrupt(WINCHESTER);)924 1362 A
- 1980 V
- (10882)210 648 A
- 1110(})S
- 2070 V
- (10883)210 648 A
- 1026(})S
- 2340 V
- (10886)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2430 V
- (10887)210 648 A
- 1068(*)S
- (w_reset)294 2370 A
- 4260(*)S
- 2520 V
- (10888)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2610 V
- (10889)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_reset())378 1530 A
- 2700 V
- (10890)210 648 A
- 1026({)S
- 2790 V
- (10891)210 648 A
- 1026(/*)S
- (Issue)210 1152 A
- 1404(a)S
- (reset)210 1488 A
- 1740(to)S
- (the)126 1866 A
- (controller.)462 2034 A
- (This)168 2580 A
- 2790(is)S
- (done)168 2916 A
- (after)210 3126 A
- (any)126 3378 A
- (catastrophe,)504 3546 A
- 2880 V
- (10892)210 648 A
- 1068(*)S
- (like)168 1152 A
- (the)126 1362 A
- (controller)420 1530 A
- (refusing)336 1992 A
- 2370(to)S
- (respond.)336 2496 A
- 2970 V
- (10893)210 648 A
- 1068(*/)S
- 3060 V
- (10894)210 648 A
- 3150 V
- (10895)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn;)168 1614 A
- 3240 V
- (10896)210 648 A
- (int)126 1110 A
- (err;)168 1278 A
- 3330 V
- (10897)210 648 A
- 3420 V
- (10898)210 648 A
- 1110(/*)S
- (Wait)168 1236 A
- (for)126 1446 A
- (any)126 1614 A
- (internal)336 1782 A
- (drive)210 2160 A
- (recovery.)378 2412 A
- 2832(*/)S
- 3510 V
- (10899)210 648 A
- (milli_delay(RECOVERYTIME);)1092 1110 A
- 3600 V
- (10900)210 648 A
- 3690 V
- (10901)210 648 A
- 1110(/*)S
- (Strobe)252 1236 A
- (reset)210 1530 A
- (bit)126 1782 A
- 1950(*/)S
- 3780 V
- (10902)210 648 A
- (out_byte(w_wn->base)798 1110 A
- 1950(+)S
- (REG_CTL,)336 2034 A
- (CTL_RESET);)462 2412 A
- 3870 V
- (10903)210 648 A
- (milli_delay(1);)630 1110 A
- 3960 V
- (10904)210 648 A
- (out_byte(w_wn->base)798 1110 A
- 1950(+)S
- (REG_CTL,)336 2034 A
- (0);)126 2412 A
- 4050 V
- (10905)210 648 A
- (milli_delay(1);)630 1110 A
- 4140 V
- (10906)210 648 A
- 4230 V
- (10907)210 648 A
- 1110(/*)S
- (Wait)168 1236 A
- (for)126 1446 A
- (controller)420 1614 A
- (ready)210 2076 A
- 2328(*/)S
- 4320 V
- (10908)210 648 A
- 1110(if)S
- ((!w_waitfor(STATUS_BSY)924 1236 A
- 2202(|)S
- (STATUS_RDY,)462 2286 A
- (STATUS_RDY)))504 2790 A
- 3336({)S
- 4410 V
- (10909)210 648 A
- (printf("%s:)462 1362 A
- (reset)210 1866 A
- (failed,)294 2118 A
- (drive)210 2454 A
- (busy\n",)336 2706 A
- (w_name());)420 3084 A
- 4500 V
- (10910)210 648 A
- (return(ERR);)504 1362 A
- 4590 V
- (10911)210 648 A
- 1110(})S
- 4680 V
- (10912)210 648 A
- 4770 V
- (10913)210 648 A
- 1110(/*)S
- (The)126 1236 A
- (error)210 1404 A
- (register)336 1656 A
- (should)252 2034 A
- 2328(be)S
- (checked)294 2454 A
- (now,)168 2790 A
- (but)126 3000 A
- (some)168 3168 A
- (drives)252 3378 A
- (mess)168 3672 A
- 3882(it)S
- (up.)126 4008 A
- 4176(*/)S
- 4860 V
- (10914)210 648 A
- 4950 V
- (10915)210 648 A
- (for)126 1110 A
- ((wn)126 1278 A
- 1446(=)S
- (wini;)210 1530 A
- 1782(wn)S
- 1908(<)S
- (&wini[MAX_DRIVES];)756 1992 A
- (wn++))210 2790 A
- 3042({)S
- 5040 V
- (10916)210 648 A
- 1362(if)S
- ((wn->base)378 1488 A
- 1908(==)S
- (w_wn->base))462 2034 A
- (wn->state)378 2538 A
- 2958(&=)S
- (304DEAF;)252 3084 A
- 5130 V
- (10917)210 648 A
- 1110(})S
- 5220 V
- (10918)210 648 A
- (return(OK);)462 1110 A
- 5310 V
- (10919)210 648 A
- 1026(})S
- 5580 V
- (10922)210 648 A
- (/*============================================================================*)3318 1026 A
- 5670 V
- (10923)210 648 A
- 1068(*)S
- (w_intr_wait)462 2370 A
- 4302(*)S
- 5760 V
- (10924)210 648 A
- (*============================================================================*/)3318 1068 A
- 5850 V
- (10925)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_intr_wait())546 1530 A
- 5940 V
- (10926)210 648 A
- 1026({)S
- 6030 V
- (10927)210 648 A
- 1026(/*)S
- (Wait)168 1152 A
- (for)126 1362 A
- 1530(a)S
- (task)168 1614 A
- (completion)420 1824 A
- (interrupt)378 2286 A
- (and)126 2706 A
- (return)252 2874 A
- (results.)336 3168 A
- 3546(*/)S
- 6120 V
- (10928)210 648 A
- 6210 V
- (10929)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 8418 V
- EP
- %%Page: 143 143
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (143)180 4248 A
- 900 V
- 7 LST
- (10930)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 990 V
- (10931)210 648 A
- 1080 V
- (10932)210 648 A
- 1110(/*)S
- (Wait)168 1236 A
- (for)126 1446 A
- 1614(an)S
- (interrupt)378 1740 A
- (that)168 2160 A
- (sets)168 2370 A
- (w_status)336 2580 A
- 2958(to)S
- ("not)168 3084 A
- (busy".)252 3294 A
- 3588(*/)S
- 1170 V
- (10933)210 648 A
- (while)210 1110 A
- ((w_status)378 1362 A
- 1782(&)S
- (STATUS_BSY))462 1866 A
- (receive(HARDWARE,)714 2370 A
- (&mess);)294 3126 A
- 1260 V
- (10934)210 648 A
- 1350 V
- (10935)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- (status.)294 1488 A
- 1824(*/)S
- 1440 V
- (10936)210 648 A
- (lock();)294 1110 A
- 1530 V
- (10937)210 648 A
- 1110(if)S
- (((w_status)420 1236 A
- 1698(&)S
- ((STATUS_BSY)462 1782 A
- 2286(|)S
- (STATUS_RDY)420 2370 A
- 2832(|)S
- (STATUS_WF)378 2916 A
- 3336(|)S
- (STATUS_ERR)))504 3420 A
- 1620 V
- (10938)210 648 A
- 3378(==)S
- (STATUS_RDY))462 3504 A
- 4008({)S
- 1710 V
- (10939)210 648 A
- 1362(r)S
- 1446(=)S
- (OK;)126 1530 A
- 1800 V
- (10940)210 648 A
- (w_status)336 1362 A
- 1740(|=)S
- (STATUS_BSY;)462 1866 A
- 2370(/*)S
- (assume)252 2496 A
- (still)210 2790 A
- (busy)168 3042 A
- (with)168 3252 A
- (I/O)126 3462 A
- 3630(*/)S
- 1890 V
- (10941)210 648 A
- 1110(})S
- (else)168 1194 A
- 1980 V
- (10942)210 648 A
- 1110(if)S
- (((w_status)420 1236 A
- 1698(&)S
- (STATUS_ERR))462 1782 A
- 2286(&&)S
- ((in_byte(w_wn->base)798 2412 A
- 3252(+)S
- (REG_ERROR))420 3336 A
- 3798(&)S
- (ERROR_BB)))420 3882 A
- 4344({)S
- 2070 V
- (10943)210 648 A
- 1362(r)S
- 1446(=)S
- (ERR_BAD_SECTOR;)630 1530 A
- 2370(/*)S
- (sector)252 2496 A
- (marked)252 2790 A
- (bad,)168 3084 A
- (retries)294 3294 A
- (won't)210 3630 A
- (help)168 3882 A
- 4092(*/)S
- 2160 V
- (10944)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 2250 V
- (10945)210 648 A
- 1362(r)S
- 1446(=)S
- (ERR;)168 1530 A
- 2370(/*)S
- (any)126 2496 A
- (other)210 2664 A
- (error)210 2916 A
- 3168(*/)S
- 2340 V
- (10946)210 648 A
- 1110(})S
- 2430 V
- (10947)210 648 A
- (unlock();)378 1110 A
- 2520 V
- (10948)210 648 A
- (return(r);)420 1110 A
- 2610 V
- (10949)210 648 A
- 1026(})S
- 2880 V
- (10952)210 648 A
- (/*==========================================================================*)3234 1026 A
- 2970 V
- (10953)210 648 A
- 1068(*)S
- (w_waitfor)378 2370 A
- 4218(*)S
- 3060 V
- (10954)210 648 A
- (*==========================================================================*/)3234 1068 A
- 3150 V
- (10955)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_waitfor(mask,)630 1530 A
- (value))252 2202 A
- 3240 V
- (10956)210 648 A
- (int)126 1026 A
- (mask;)210 1194 A
- 2370(/*)S
- (status)252 2496 A
- (mask)168 2790 A
- 3000(*/)S
- 3330 V
- (10957)210 648 A
- (int)126 1026 A
- (value;)252 1194 A
- 2370(/*)S
- (required)336 2496 A
- (status)252 2874 A
- 3168(*/)S
- 3420 V
- (10958)210 648 A
- 1026({)S
- 3510 V
- (10959)210 648 A
- 1026(/*)S
- (Wait)168 1152 A
- (until)210 1362 A
- (controller)420 1614 A
- 2076(is)S
- 2202(in)S
- (the)126 2328 A
- (required)336 2496 A
- (state.)252 2874 A
- (Return)252 3210 A
- (zero)168 3504 A
- 3714(on)S
- (timeout.)336 3840 A
- 4218(*/)S
- 3600 V
- (10960)210 648 A
- 3690 V
- (10961)210 648 A
- (struct)252 1110 A
- (milli_state)462 1404 A
- (ms;)126 1908 A
- 3780 V
- (10962)210 648 A
- 3870 V
- (10963)210 648 A
- (milli_start(&ms);)714 1110 A
- 3960 V
- (10964)210 648 A
- 1110(do)S
- 1236({)S
- 4050 V
- (10965)210 648 A
- 1320(if)S
- (((in_byte(w_wn->base)840 1446 A
- 2328(+)S
- (REG_STATUS))462 2412 A
- 2916(&)S
- (mask))210 3000 A
- 3252(==)S
- (value))252 3378 A
- (return)252 3672 A
- 3966(1;)S
- 4140 V
- (10966)210 648 A
- 1110(})S
- (while)210 1194 A
- ((milli_elapsed(&ms))798 1446 A
- 2286(<)S
- (TIMEOUT);)378 2370 A
- 4230 V
- (10967)210 648 A
- 4320 V
- (10968)210 648 A
- (w_need_reset();)630 1110 A
- 2034(/*)S
- (Controller)420 2160 A
- (gone)168 2622 A
- (deaf.)210 2832 A
- 3084(*/)S
- 4410 V
- (10969)210 648 A
- (return(0);)420 1110 A
- 4500 V
- (10970)210 648 A
- 1026(})S
- 4770 V
- (10973)210 648 A
- (/*==========================================================================*)3234 1026 A
- 4860 V
- (10974)210 648 A
- 1068(*)S
- (w_handler)378 2370 A
- 4218(*)S
- 4950 V
- (10975)210 648 A
- (*==========================================================================*/)3234 1068 A
- 5040 V
- (10976)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_handler(irq))588 1530 A
- 5130 V
- (10977)210 648 A
- (int)126 1026 A
- (irq;)168 1194 A
- 5220 V
- (10978)210 648 A
- 1026({)S
- 5310 V
- (10979)210 648 A
- 1026(/*)S
- (Disk)168 1152 A
- (interrupt,)420 1362 A
- (send)168 1824 A
- (message)294 2034 A
- 2370(to)S
- (winchester)420 2496 A
- (task)168 2958 A
- (and)126 3168 A
- (reenable)336 3336 A
- (interrupts.)462 3714 A
- 4218(*/)S
- 5400 V
- (10980)210 648 A
- 5490 V
- (10981)210 648 A
- (w_status)336 1110 A
- 1488(=)S
- (in_byte(w_wn->base)756 1572 A
- 2370(+)S
- (REG_STATUS);)504 2454 A
- 3042(/*)S
- (acknowledge)462 3168 A
- (interrupt)378 3672 A
- 4092(*/)S
- 5580 V
- (10982)210 648 A
- (interrupt(WINCHESTER);)924 1110 A
- 5670 V
- (10983)210 648 A
- (return)252 1110 A
- 1404(1;)S
- 5760 V
- (10984)210 648 A
- 1026(})S
- 6030 V
- (10987)210 648 A
- (/*============================================================================*)3318 1026 A
- 6120 V
- (10988)210 648 A
- 1068(*)S
- (w_geometry)420 2370 A
- 4302(*)S
- 6210 V
- (10989)210 648 A
- (*============================================================================*/)3318 1068 A
- 8418 V
- EP
- %%Page: 144 144
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (144)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10990)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (w_geometry(entry))714 1572 A
- 990 V
- (10991)210 648 A
- (struct)252 1026 A
- (partition)378 1320 A
- (*entry;)294 1740 A
- 1080 V
- (10992)210 648 A
- 1026({)S
- 1170 V
- (10993)210 648 A
- (entry->cylinders)672 1110 A
- 1824(=)S
- (w_wn->lcylinders;)714 1908 A
- 1260 V
- (10994)210 648 A
- (entry->heads)504 1110 A
- 1656(=)S
- (w_wn->lheads;)546 1740 A
- 1350 V
- (10995)210 648 A
- (entry->sectors)588 1110 A
- 1740(=)S
- (w_wn->lsectors;)630 1824 A
- 1440 V
- (10996)210 648 A
- 1026(})S
- 1530 V
- (10997)210 648 A
- (#endif)252 1026 A
- 1320(/*)S
- (ENABLE_AT_WINI)588 1446 A
- 2076(*/)S
- 1890 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1980 V
- (src/kernel/clock.c)756 2034 A
- 2070 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2250 V
- (11000)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (code)168 2118 A
- (and)126 2328 A
- (data)168 2496 A
- (for)126 2706 A
- (the)126 2874 A
- (clock)210 3042 A
- (task.)210 3294 A
- (The)126 3588 A
- (clock)210 3756 A
- (task)168 4008 A
- 2340 V
- (11001)210 648 A
- 1068(*)S
- (accepts)294 1152 A
- (six)126 1488 A
- (message)294 1656 A
- (types:)252 1992 A
- 2430 V
- (11002)210 648 A
- 1068(*)S
- 2520 V
- (11003)210 648 A
- 1068(*)S
- (HARD_INT:)378 1236 A
- 1782(a)S
- (clock)210 1866 A
- (interrupt)378 2118 A
- (has)126 2538 A
- (occurred)336 2706 A
- 2610 V
- (11004)210 648 A
- 1068(*)S
- (GET_UPTIME:)462 1236 A
- (get)126 1782 A
- (the)126 1950 A
- (time)168 2118 A
- (since)210 2328 A
- (boot)168 2580 A
- 2790(in)S
- (ticks)210 2916 A
- 2700 V
- (11005)210 648 A
- 1068(*)S
- (GET_TIME:)378 1236 A
- 1782(a)S
- (process)294 1866 A
- (wants)210 2202 A
- (the)126 2454 A
- (real)168 2622 A
- (time)168 2832 A
- 3042(in)S
- (seconds)294 3168 A
- 2790 V
- (11006)210 648 A
- 1068(*)S
- (SET_TIME:)378 1236 A
- 1782(a)S
- (process)294 1866 A
- (wants)210 2202 A
- 2454(to)S
- (set)126 2580 A
- (the)126 2748 A
- (real)168 2916 A
- (time)168 3126 A
- 3336(in)S
- (seconds)294 3462 A
- 2880 V
- (11007)210 648 A
- 1068(*)S
- (SET_ALARM:)420 1236 A
- 1782(a)S
- (process)294 1866 A
- (wants)210 2202 A
- 2454(to)S
- 2580(be)S
- (alerted)294 2706 A
- (after)210 3042 A
- 3294(a)S
- (specified)378 3378 A
- (interval)336 3798 A
- 2970 V
- (11008)210 648 A
- 1068(*)S
- (SET_SYN_AL:)462 1236 A
- (set)126 1782 A
- (the)126 1950 A
- (sync)168 2118 A
- (alarm)210 2328 A
- 3060 V
- (11009)210 648 A
- 1068(*)S
- 3150 V
- (11010)210 648 A
- 1068(*)S
- 3240 V
- (11011)210 648 A
- 1068(*)S
- (The)126 1152 A
- (input)210 1320 A
- (message)294 1572 A
- 1908(is)S
- (format)252 2034 A
- (m6.)126 2328 A
- (The)126 2538 A
- (parameters)420 2706 A
- (are)126 3168 A
- 3336(as)S
- (follows:)336 3462 A
- 3330 V
- (11012)210 648 A
- 1068(*)S
- 3420 V
- (11013)210 648 A
- 1068(*)S
- (m_type)252 1320 A
- (CLOCK_PROC)420 1740 A
- (FUNC)168 2286 A
- (NEW_TIME)336 2622 A
- 3510 V
- (11014)210 648 A
- 1068(*)S
- (---------------------------------------------)1890 1152 A
- 3600 V
- (11015)210 648 A
- 1068(*)S
- 1152(|)S
- (HARD_INT)336 1236 A
- 1698(|)S
- 2160(|)S
- 2580(|)S
- 3000(|)S
- 3690 V
- (11016)210 648 A
- 1068(*)S
- (|------------+----------+---------+---------|)1890 1152 A
- 3780 V
- (11017)210 648 A
- 1068(*)S
- 1152(|)S
- (GET_UPTIME)420 1236 A
- 1698(|)S
- 2160(|)S
- 2580(|)S
- 3000(|)S
- 3870 V
- (11018)210 648 A
- 1068(*)S
- (|------------+----------+---------+---------|)1890 1152 A
- 3960 V
- (11019)210 648 A
- 1068(*)S
- 1152(|)S
- (GET_TIME)336 1236 A
- 1698(|)S
- 2160(|)S
- 2580(|)S
- 3000(|)S
- 4050 V
- (11020)210 648 A
- 1068(*)S
- (|------------+----------+---------+---------|)1890 1152 A
- 4140 V
- (11021)210 648 A
- 1068(*)S
- 1152(|)S
- (SET_TIME)336 1236 A
- 1698(|)S
- 2160(|)S
- 2580(|)S
- (newtime)294 2664 A
- 3000(|)S
- 4230 V
- (11022)210 648 A
- 1068(*)S
- (|------------+----------+---------+---------|)1890 1152 A
- 4320 V
- (11023)210 648 A
- 1068(*)S
- 1152(|)S
- (SET_ALARM)378 1236 A
- 1698(|)S
- (proc_nr)294 1782 A
- 2160(|f)S
- 2286(to)S
- (call|)210 2412 A
- (delta)210 2706 A
- 3000(|)S
- 4410 V
- (11024)210 648 A
- 1068(*)S
- (|------------+----------+---------+---------|)1890 1152 A
- 4500 V
- (11025)210 648 A
- 1068(*)S
- 1152(|)S
- (SET_SYN_AL)420 1236 A
- 1698(|)S
- (proc_nr)294 1782 A
- 2160(|)S
- 2580(|)S
- (delta)210 2706 A
- 3000(|)S
- 4590 V
- (11026)210 648 A
- 1068(*)S
- (---------------------------------------------)1890 1152 A
- 4680 V
- (11027)210 648 A
- 1068(*)S
- (NEW_TIME,)378 1152 A
- (DELTA_CLICKS,)546 1572 A
- (and)126 2160 A
- (SECONDS_LEFT)504 2328 A
- (all)126 2874 A
- (refer)210 3042 A
- 3294(to)S
- (the)126 3420 A
- (same)168 3588 A
- (field)210 3798 A
- 4050(in)S
- 4770 V
- (11028)210 648 A
- 1068(*)S
- (the)126 1152 A
- (message,)336 1320 A
- (depending)378 1698 A
- (upon)168 2118 A
- (the)126 2328 A
- (message)294 2496 A
- (type.)210 2832 A
- 4860 V
- (11029)210 648 A
- 1068(*)S
- 4950 V
- (11030)210 648 A
- 1068(*)S
- (Reply)210 1152 A
- (messages)336 1404 A
- (are)126 1782 A
- 1950(of)S
- (type)168 2076 A
- (OK,)126 2286 A
- (except)252 2454 A
- 2748(in)S
- (the)126 2874 A
- (case)168 3042 A
- 3252(of)S
- 3378(a)S
- (HARD_INT,)378 3462 A
- 3882(to)S
- 5040 V
- (11031)210 648 A
- 1068(*)S
- (which)210 1152 A
- 1404(no)S
- (reply)210 1530 A
- 1782(is)S
- (generated.)420 1908 A
- (For)126 2370 A
- (the)126 2538 A
- (GET_*)210 2706 A
- (messages)336 2958 A
- (the)126 3336 A
- (time)168 3504 A
- 3714(is)S
- (returned)336 3840 A
- 5130 V
- (11032)210 648 A
- 1068(*)S
- 1152(in)S
- (the)126 1278 A
- (NEW_TIME)336 1446 A
- (field,)252 1824 A
- (and)126 2118 A
- (for)126 2286 A
- (the)126 2454 A
- (SET_ALARM)378 2622 A
- (and)126 3042 A
- (SET_SYN_AL)420 3210 A
- (the)126 3672 A
- (time)168 3840 A
- 5220 V
- (11033)210 648 A
- 1068(*)S
- 1152(in)S
- (seconds)294 1278 A
- (remaining)378 1614 A
- (until)210 2034 A
- (the)126 2286 A
- (alarm)210 2454 A
- 2706(is)S
- (returned)336 2832 A
- 3210(is)S
- (returned)336 3336 A
- 3714(in)S
- (the)126 3840 A
- (same)168 4008 A
- 5310 V
- (11034)210 648 A
- 1068(*)S
- (field.)252 1152 A
- 5400 V
- (11035)210 648 A
- 1068(*)S
- 5490 V
- (11036)210 648 A
- 1068(*)S
- (When)168 1152 A
- 1362(an)S
- (alarm)210 1488 A
- (goes)168 1740 A
- (off,)168 1950 A
- 2160(if)S
- (the)126 2286 A
- (caller)252 2454 A
- 2748(is)S
- 2874(a)S
- (user)168 2958 A
- (process,)336 3168 A
- 3546(a)S
- (SIGALRM)294 3630 A
- (signal)252 3966 A
- 5580 V
- (11037)210 648 A
- 1068(*)S
- 1152(is)S
- (sent)168 1278 A
- 1488(to)S
- (it.)126 1614 A
- 1824(If)S
- 1950(it)S
- 2076(is)S
- 2202(a)S
- (task,)210 2286 A
- 2538(a)S
- (function)336 2622 A
- (specified)378 3000 A
- 3420(by)S
- (the)126 3546 A
- (caller)252 3714 A
- (will)168 4008 A
- 5670 V
- (11038)210 648 A
- 1068(*)S
- 1152(be)S
- (invoked.)336 1278 A
- (This)168 1698 A
- (function)336 1908 A
- (may,)168 2286 A
- (for)126 2496 A
- (example,)336 2664 A
- (send)168 3042 A
- 3252(a)S
- (message,)336 3336 A
- (but)126 3714 A
- (only)168 3882 A
- 4092(if)S
- 5760 V
- (11039)210 648 A
- 1068(*)S
- 1152(it)S
- 1278(is)S
- (certain)294 1404 A
- (that)168 1740 A
- (the)126 1950 A
- (task)168 2118 A
- (will)168 2328 A
- 2538(be)S
- (blocked)294 2664 A
- (when)168 3000 A
- (the)126 3210 A
- (timer)210 3378 A
- (goes)168 3630 A
- (off.)168 3840 A
- 4050(A)S
- 5850 V
- (11040)210 648 A
- 1068(*)S
- (synchronous)462 1152 A
- (alarm)210 1656 A
- (sends)210 1908 A
- 2160(a)S
- (message)294 2244 A
- 2580(to)S
- (the)126 2706 A
- (synchronous)462 2874 A
- (alarm)210 3378 A
- (task,)210 3630 A
- (which)210 3882 A
- 5940 V
- (11041)210 648 A
- 1068(*)S
- 1152(in)S
- (turn)168 1278 A
- (can)126 1488 A
- (dispatch)336 1656 A
- 2034(a)S
- (message)294 2118 A
- 2454(to)S
- (another)294 2580 A
- (server.)294 2916 A
- (This)168 3252 A
- 3462(is)S
- (the)126 3588 A
- (only)168 3756 A
- (way)126 3966 A
- 6030 V
- (11042)210 648 A
- 1068(*)S
- 1152(to)S
- (send)168 1278 A
- 1488(an)S
- (alarm)210 1614 A
- 1866(to)S
- 1992(a)S
- (server,)294 2076 A
- (since)210 2412 A
- (servers)294 2664 A
- (cannot)252 3000 A
- (use)126 3294 A
- (the)126 3462 A
- (function-call)546 3630 A
- 6120 V
- (11043)210 648 A
- 1068(*)S
- (mechanism)378 1152 A
- (available)378 1572 A
- 1992(to)S
- (tasks)210 2118 A
- (and)126 2370 A
- (servers)294 2538 A
- (cannot)252 2874 A
- (receive)294 3168 A
- (signals.)336 3504 A
- 6210 V
- (11044)210 648 A
- 1068(*/)S
- 8418 V
- EP
- %%Page: 145 145
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 12 B
- (145)180 4248 A
- 900 V
- 7 LST
- (11045)210 648 A
- 990 V
- (11046)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 1080 V
- (11047)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 1170 V
- (11048)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 1260 V
- (11049)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 1350 V
- (11050)210 648 A
- (#include)336 1026 A
- ("proc.h")336 1404 A
- 1440 V
- (11051)210 648 A
- 1530 V
- (11052)210 648 A
- 1026(/*)S
- (Constant)336 1152 A
- (definitions.)504 1530 A
- 2076(*/)S
- 1620 V
- (11053)210 648 A
- (#define)294 1026 A
- (MILLISEC)336 1362 A
- (100)126 2076 A
- 2370(/*)S
- (how)126 2496 A
- (often)210 2664 A
- 2916(to)S
- (call)168 3042 A
- (the)126 3252 A
- (scheduler)378 3420 A
- ((msec))252 3840 A
- 4134(*/)S
- 1710 V
- (11054)210 648 A
- (#define)294 1026 A
- (SCHED_RATE)420 1362 A
- ((MILLISEC*HZ/1000))756 1824 A
- 2706(/*)S
- (number)252 2832 A
- 3126(of)S
- (ticks)210 3252 A
- (per)126 3504 A
- (schedule)336 3672 A
- 4050(*/)S
- 1800 V
- (11055)210 648 A
- 1890 V
- (11056)210 648 A
- 1026(/*)S
- (Clock)210 1152 A
- (parameters.)462 1404 A
- 1908(*/)S
- 1980 V
- (11057)210 648 A
- (#define)294 1026 A
- (COUNTER_FREQ)504 1362 A
- ((2*TIMER_FREQ))588 1908 A
- 2706(/*)S
- (counter)294 2832 A
- (frequency)378 3168 A
- (using)210 3588 A
- (sqare)210 3840 A
- (wave*/)252 4092 A
- 2070 V
- (11058)210 648 A
- (#define)294 1026 A
- (LATCH_COUNT)462 1362 A
- (0x00)168 2034 A
- 2370(/*)S
- (cc00xxxx,)378 2496 A
- 2916(c)S
- 3000(=)S
- (channel,)336 3084 A
- 3462(x)S
- 3546(=)S
- (any)126 3630 A
- 3798(*/)S
- 2160 V
- (11059)210 648 A
- (#define)294 1026 A
- (SQUARE_WAVE)462 1362 A
- (0x36)168 2034 A
- 2370(/*)S
- (ccaammmb,)378 2496 A
- 2916(a)S
- 3000(=)S
- (access,)294 3084 A
- 3420(m)S
- 3504(=)S
- (mode,)210 3588 A
- 3840(b)S
- 3924(=)S
- (BCD)126 4008 A
- 4176(*/)S
- 2250 V
- (11060)210 648 A
- 2370(/*)S
- (11x11,)252 2580 A
- 2874(11)S
- 3000(=)S
- (LSB)126 3084 A
- (then)168 3252 A
- (MSB,)168 3462 A
- (x11)126 3672 A
- 3840(=)S
- 3924(sq)S
- (wave)168 4050 A
- 4260(*/)S
- 2340 V
- (11061)210 648 A
- (#define)294 1026 A
- (TIMER_COUNT)462 1362 A
- (((unsigned))462 1866 A
- ((TIMER_FREQ/HZ)))672 2370 A
- 3084(/*)S
- (initial)294 3210 A
- (value)210 3546 A
- (for)126 3798 A
- (counter*/)378 3966 A
- 2430 V
- (11062)210 648 A
- (#define)294 1026 A
- (TIMER_FREQ)420 1362 A
- (1193182L)336 1866 A
- 2370(/*)S
- (clock)210 2496 A
- (frequency)378 2748 A
- (for)126 3168 A
- (timer)210 3336 A
- 3588(in)S
- 3714(PC)S
- (and)126 3840 A
- 4008(AT)S
- 4134(*/)S
- 2520 V
- (11063)210 648 A
- 2610 V
- (11064)210 648 A
- (#define)294 1026 A
- (CLOCK_ACK_BIT)546 1362 A
- (0x80)168 2034 A
- 2370(/*)S
- (PS/2)168 2496 A
- (clock)210 2706 A
- (interrupt)378 2958 A
- (acknowledge)462 3378 A
- (bit)126 3882 A
- 4050(*/)S
- 2700 V
- (11065)210 648 A
- 2790 V
- (11066)210 648 A
- 1026(/*)S
- (Clock)210 1152 A
- (task)168 1404 A
- (variables.)420 1614 A
- 2076(*/)S
- 2880 V
- (11067)210 648 A
- (PRIVATE)294 1026 A
- (clock_t)294 1362 A
- (realtime;)378 1698 A
- 2370(/*)S
- (real)168 2496 A
- (time)168 2706 A
- (clock)210 2916 A
- 3168(*/)S
- 2970 V
- (11068)210 648 A
- (PRIVATE)294 1026 A
- (time_t)252 1362 A
- (boot_time;)420 1656 A
- 2370(/*)S
- (time)168 2496 A
- 2706(in)S
- (seconds)294 2832 A
- 3168(of)S
- (system)252 3294 A
- (boot)168 3588 A
- 3798(*/)S
- 3060 V
- (11069)210 648 A
- (PRIVATE)294 1026 A
- (clock_t)294 1362 A
- (next_alarm;)462 1698 A
- 2370(/*)S
- (probable)336 2496 A
- (time)168 2874 A
- 3084(of)S
- (next)168 3210 A
- (alarm)210 3420 A
- 3672(*/)S
- 3150 V
- (11070)210 648 A
- (PRIVATE)294 1026 A
- (message)294 1362 A
- (mc;)126 1698 A
- 2370(/*)S
- (message)294 2496 A
- (buffer)252 2832 A
- (for)126 3126 A
- (both)168 3294 A
- (input)210 3504 A
- (and)126 3756 A
- (output)252 3924 A
- 4218(*/)S
- 3240 V
- (11071)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (watchdog_proc;)588 1530 A
- 2370(/*)S
- (contains)336 2496 A
- (proc_nr)294 2874 A
- 3210(at)S
- (call)168 3336 A
- 3546(of)S
- (*watch_dog[]*/)588 3672 A
- 3330 V
- (11072)210 648 A
- (PRIVATE)294 1026 A
- (watchdog_t)420 1362 A
- (watch_dog[NR_TASKS+NR_PROCS];)1218 1824 A
- 3420 V
- (11073)210 648 A
- 3510 V
- (11074)210 648 A
- 1026(/*)S
- (Variables)378 1152 A
- (used)168 1572 A
- 1782(by)S
- (both)168 1908 A
- (clock)210 2118 A
- (task)168 2370 A
- (and)126 2580 A
- (synchronous)462 2748 A
- (alarm)210 3252 A
- (task)168 3504 A
- 3714(*/)S
- 3600 V
- (11075)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (syn_al_alive=)546 1530 A
- (TRUE;)210 2118 A
- 2370(/*)S
- (don't)210 2496 A
- (wake)168 2748 A
- (syn_alrm_task)546 2958 A
- (before)252 3546 A
- (inited*/)336 3840 A
- 3690 V
- (11076)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (syn_table[NR_TASKS+NR_PROCS];)1218 1530 A
- 2790(/*)S
- (which)210 2916 A
- (tasks)210 3168 A
- (get)126 3420 A
- (CLOCK_INT*/)462 3588 A
- 3780 V
- (11077)210 648 A
- 3870 V
- (11078)210 648 A
- 1026(/*)S
- (Variables)378 1152 A
- (changed)294 1572 A
- 1908(by)S
- (interrupt)378 2034 A
- (handler)294 2454 A
- 2790(*/)S
- 3960 V
- (11079)210 648 A
- (PRIVATE)294 1026 A
- (clock_t)294 1362 A
- (pending_ticks;)588 1698 A
- 2370(/*)S
- (ticks)210 2496 A
- (seen)168 2748 A
- 2958(by)S
- (low)126 3084 A
- (level)210 3252 A
- (only)168 3504 A
- 3714(*/)S
- 4050 V
- (11080)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (sched_ticks)462 1530 A
- 2034(=)S
- (SCHED_RATE;)462 2118 A
- 2706(/*)S
- (counter:)336 2832 A
- (when)168 3210 A
- 3420(0,)S
- (call)168 3546 A
- (scheduler)378 3756 A
- 4176(*/)S
- 4140 V
- (11081)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (proc)168 1656 A
- (*prev_ptr;)420 1866 A
- 2370(/*)S
- (last)168 2496 A
- (user)168 2706 A
- (process)294 2916 A
- (run)126 3252 A
- 3420(by)S
- (clock)210 3546 A
- (task)168 3798 A
- 4008(*/)S
- 4230 V
- (11082)210 648 A
- 4320 V
- (11083)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (common_setalarm,)672 2076 A
- ((int)168 2790 A
- (proc_nr,)336 3000 A
- 4410 V
- (11084)210 648 A
- (long)168 1698 A
- (delta_ticks,)504 1908 A
- (watchdog_t)420 2454 A
- (fuction))336 2916 A
- 3294();)S
- 4500 V
- (11085)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_clocktick,)546 2076 A
- ((void))252 2664 A
- 2958();)S
- 4590 V
- (11086)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_get_time,)504 2076 A
- ((void))252 2622 A
- 2916();)S
- 4680 V
- (11087)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_getuptime,)546 2076 A
- ((void))252 2664 A
- 2958();)S
- 4770 V
- (11088)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_set_time,)504 2076 A
- ((message)336 2622 A
- (*m_ptr))294 3000 A
- 3336();)S
- 4860 V
- (11089)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_setalarm,)504 2076 A
- ((message)336 2622 A
- (*m_ptr))294 3000 A
- 3336();)S
- 4950 V
- (11090)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (init_clock,)462 2076 A
- ((void))252 2580 A
- 2874();)S
- 5040 V
- (11091)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (cause_alarm,)504 2076 A
- ((void))252 2622 A
- 2916();)S
- 5130 V
- (11092)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_setsyn_alrm,)630 2076 A
- ((message)336 2748 A
- (*m_ptr))294 3126 A
- 3462();)S
- 5220 V
- (11093)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (clock_handler,)588 2034 A
- ((int)168 2664 A
- (irq))168 2874 A
- 3084();)S
- 5310 V
- (11094)210 648 A
- 5400 V
- (11095)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5490 V
- (11096)210 648 A
- 1068(*)S
- (clock_task)420 2370 A
- 4260(*)S
- 5580 V
- (11097)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5670 V
- (11098)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (clock_task())504 1530 A
- 5760 V
- (11099)210 648 A
- 1026({)S
- 5850 V
- (11100)210 648 A
- 1026(/*)S
- (Main)168 1152 A
- (program)294 1362 A
- 1698(of)S
- (clock)210 1824 A
- (task.)210 2076 A
- 2370(It)S
- (corrects)336 2496 A
- (realtime)336 2874 A
- 3252(by)S
- (adding)252 3378 A
- (pending)294 3672 A
- 5940 V
- (11101)210 648 A
- 1068(*)S
- (ticks)210 1152 A
- (seen)168 1404 A
- (only)168 1614 A
- 1824(by)S
- (the)126 1950 A
- (interrupt)378 2118 A
- (service,)336 2538 A
- (then)168 2916 A
- 3126(it)S
- (determines)420 3252 A
- (which)210 3714 A
- 6030 V
- (11102)210 648 A
- 1068(*)S
- 1152(of)S
- (the)126 1278 A
- 1446(6)S
- (possible)336 1530 A
- (calls)210 1908 A
- (this)168 2160 A
- 2370(is)S
- 2496(by)S
- (looking)294 2622 A
- 2958(at)S
- ('mc.m_type'.)504 3084 A
- (Then)168 3672 A
- 6120 V
- (11103)210 648 A
- 1068(*)S
- 1152(it)S
- (dispatches.)462 1278 A
- 6210 V
- (11104)210 648 A
- 1068(*/)S
- 8418 V
- EP
- %%Page: 146 146
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (146)180 648 A
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11105)210 648 A
- 990 V
- (11106)210 648 A
- (int)126 1110 A
- (opcode;)294 1278 A
- 1080 V
- (11107)210 648 A
- 1170 V
- (11108)210 648 A
- (init_clock();)546 1110 A
- 2370(/*)S
- (initialize)420 2496 A
- (clock)210 2958 A
- (task)168 3210 A
- 3420(*/)S
- 1260 V
- (11109)210 648 A
- 1350 V
- (11110)210 648 A
- 1110(/*)S
- (Main)168 1236 A
- (loop)168 1446 A
- 1656(of)S
- (the)126 1782 A
- (clock)210 1950 A
- (task.)210 2202 A
- (Get)126 2496 A
- (work,)210 2664 A
- (process)294 2916 A
- (it,)126 3252 A
- (sometimes)378 3420 A
- (reply.)252 3840 A
- 4134(*/)S
- 1440 V
- (11111)210 648 A
- (while)210 1110 A
- ((TRUE))252 1362 A
- 1656({)S
- 1530 V
- (11112)210 648 A
- (receive(ANY,)504 1236 A
- (&mc);)210 1782 A
- 2370(/*)S
- 2496(go)S
- (get)126 2622 A
- 2790(a)S
- (message)294 2874 A
- 3210(*/)S
- 1620 V
- (11113)210 648 A
- (opcode)252 1236 A
- 1530(=)S
- (mc.m_type;)420 1614 A
- 2370(/*)S
- (extract)294 2496 A
- (the)126 2832 A
- (function)336 3000 A
- (code)168 3378 A
- 3588(*/)S
- 1710 V
- (11114)210 648 A
- 1800 V
- (11115)210 648 A
- (lock();)294 1236 A
- 1890 V
- (11116)210 648 A
- (realtime)336 1236 A
- 1614(+=)S
- (pending_ticks;)588 1740 A
- 2370(/*)S
- (transfer)336 2496 A
- (ticks)210 2874 A
- (from)168 3126 A
- (low)126 3336 A
- (level)210 3504 A
- (handler)294 3756 A
- 4092(*/)S
- 1980 V
- (11117)210 648 A
- (pending_ticks)546 1236 A
- 1824(=)S
- 1908(0;)S
- 2370(/*)S
- 2496(so)S
- 2622(we)S
- (don't)210 2748 A
- (have)168 3000 A
- 3210(to)S
- (worry)210 3336 A
- (about)210 3588 A
- (them)168 3840 A
- 4050(*/)S
- 2070 V
- (11118)210 648 A
- (unlock();)378 1236 A
- 2160 V
- (11119)210 648 A
- 2250 V
- (11120)210 648 A
- (switch)252 1236 A
- ((opcode))336 1530 A
- 1908({)S
- 2340 V
- (11121)210 648 A
- (case)168 1362 A
- (HARD_INT:)378 1572 A
- (do_clocktick();)630 2076 A
- (break;)252 3042 A
- 2430 V
- (11122)210 648 A
- (case)168 1362 A
- (GET_UPTIME:)462 1572 A
- (do_getuptime();)630 2076 A
- (break;)252 3042 A
- 2520 V
- (11123)210 648 A
- (case)168 1362 A
- (GET_TIME:)378 1572 A
- (do_get_time();)588 2076 A
- (break;)252 3042 A
- 2610 V
- (11124)210 648 A
- (case)168 1362 A
- (SET_TIME:)378 1572 A
- (do_set_time(&mc);)714 2076 A
- (break;)252 3042 A
- 2700 V
- (11125)210 648 A
- (case)168 1362 A
- (SET_ALARM:)420 1572 A
- (do_setalarm(&mc);)714 2076 A
- (break;)252 3042 A
- 2790 V
- (11126)210 648 A
- (case)168 1362 A
- (SET_SYNC_AL:do_setsyn_alrm(&mc);)1344 1572 A
- (break;)252 3042 A
- 2880 V
- (11127)210 648 A
- (default:)336 1362 A
- (panic("clock)504 1740 A
- (task)168 2286 A
- (got)126 2496 A
- (bad)126 2664 A
- (message",)378 2832 A
- (mc.m_type);)462 3252 A
- 2970 V
- (11128)210 648 A
- 1236(})S
- 3060 V
- (11129)210 648 A
- 3150 V
- (11130)210 648 A
- 1194(/*)S
- (Send)168 1320 A
- (reply,)252 1530 A
- (except)252 1824 A
- (for)126 2118 A
- (clock)210 2286 A
- (tick.)210 2538 A
- 2790(*/)S
- 3240 V
- (11131)210 648 A
- (mc.m_type)378 1194 A
- 1614(=)S
- (OK;)126 1698 A
- 3330 V
- (11132)210 648 A
- 1194(if)S
- ((opcode)294 1320 A
- 1656(!=)S
- (HARD_INT))378 1782 A
- (send(mc.m_source,)714 2202 A
- (&mc);)210 2958 A
- 3420 V
- (11133)210 648 A
- 1110(})S
- 3510 V
- (11134)210 648 A
- 1026(})S
- 3780 V
- (11137)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3870 V
- (11138)210 648 A
- 1068(*)S
- (do_clocktick)504 2370 A
- 4260(*)S
- 3960 V
- (11139)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4050 V
- (11140)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_clocktick())588 1572 A
- 4140 V
- (11141)210 648 A
- 1026({)S
- 4230 V
- (11142)210 648 A
- 1026(/*)S
- (Despite)294 1152 A
- (its)126 1488 A
- (name,)210 1656 A
- (this)168 1908 A
- (routine)294 2118 A
- 2454(is)S
- (not)126 2580 A
- (called)252 2748 A
- 3042(on)S
- (every)210 3168 A
- (clock)210 3420 A
- (tick.)210 3672 A
- 3924(It)S
- 4320 V
- (11143)210 648 A
- 1068(*)S
- 1152(is)S
- (called)252 1278 A
- 1572(on)S
- (those)210 1698 A
- (clock)210 1950 A
- (ticks)210 2202 A
- (when)168 2454 A
- 2664(a)S
- (lot)126 2748 A
- 2916(of)S
- (work)168 3042 A
- (needs)210 3252 A
- 3504(to)S
- 3630(be)S
- (done.)210 3756 A
- 4410 V
- (11144)210 648 A
- 1068(*/)S
- 4500 V
- (11145)210 648 A
- 4590 V
- (11146)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (proc)168 1782 A
- (*rp;)168 1992 A
- 4680 V
- (11147)210 648 A
- (register)336 1110 A
- (int)126 1488 A
- (proc_nr;)336 1656 A
- 4770 V
- (11148)210 648 A
- 4860 V
- (11149)210 648 A
- 1110(if)S
- ((next_alarm)462 1236 A
- 1740(<=)S
- (realtime))378 1866 A
- 2286({)S
- 4950 V
- (11150)210 648 A
- 1362(/*)S
- 1488(An)S
- (alarm)210 1614 A
- (may)126 1866 A
- (have)168 2034 A
- (gone)168 2244 A
- (off,)168 2454 A
- (but)126 2664 A
- (proc)168 2832 A
- (may)126 3042 A
- (have)168 3210 A
- (exited,)294 3420 A
- 3756(so)S
- (check.)252 3882 A
- 4176(*/)S
- 5040 V
- (11151)210 648 A
- (next_alarm)420 1362 A
- 1824(=)S
- (LONG_MAX;)378 1908 A
- 2370(/*)S
- (start)210 2496 A
- (computing)378 2748 A
- (next)168 3168 A
- (alarm)210 3378 A
- 3630(*/)S
- 5130 V
- (11152)210 648 A
- (for)126 1362 A
- ((rp)126 1530 A
- 1698(=)S
- (BEG_PROC_ADDR;)588 1782 A
- 2412(rp)S
- 2538(<)S
- (END_PROC_ADDR;)588 2622 A
- (rp++))210 3252 A
- 3504({)S
- 5220 V
- (11153)210 648 A
- 1698(if)S
- ((rp->p_alarm)504 1824 A
- 2370(!=)S
- 2496(0))S
- 2622({)S
- 5310 V
- (11154)210 648 A
- 2034(/*)S
- (See)126 2160 A
- 2328(if)S
- (this)168 2454 A
- (alarm)210 2664 A
- (time)168 2916 A
- (has)126 3126 A
- (been)168 3294 A
- (reached.)336 3504 A
- 3882(*/)S
- 5400 V
- (11155)210 648 A
- 2034(if)S
- ((rp->p_alarm)504 2160 A
- 2706(<=)S
- (realtime))378 2832 A
- 3252({)S
- 5490 V
- (11156)210 648 A
- 2370(/*)S
- 2496(A)S
- (timer)210 2580 A
- (has)126 2832 A
- (gone)168 3000 A
- (off.)168 3210 A
- 3462(If)S
- 3588(it)S
- 3714(is)S
- 3840(a)S
- (user)168 3924 A
- (proc,)210 4134 A
- 5580 V
- (11157)210 648 A
- 2412(*)S
- (send)168 2496 A
- 2706(it)S
- 2832(a)S
- (signal.)294 2916 A
- 3294(If)S
- 3420(it)S
- 3546(is)S
- 3672(a)S
- (task,)210 3756 A
- (call)168 4008 A
- (the)126 4218 A
- 5670 V
- (11158)210 648 A
- 2412(*)S
- (function)336 2496 A
- (previously)420 2874 A
- (specified)378 3336 A
- 3756(by)S
- (the)126 3882 A
- (task.)210 4050 A
- 5760 V
- (11159)210 648 A
- 2412(*/)S
- 5850 V
- (11160)210 648 A
- (proc_nr)294 2370 A
- 2706(=)S
- (proc_number(rp);)672 2790 A
- 5940 V
- (11161)210 648 A
- 2370(if)S
- ((watch_dog[proc_nr+NR_TASKS]))1218 2496 A
- 3756({)S
- 6030 V
- (11162)210 648 A
- (watchdog_proc=)588 2706 A
- (proc_nr;)336 3336 A
- 6120 V
- (11163)210 648 A
- ((*watch_dog[proc_nr+NR_TASKS])();)1386 2706 A
- 6210 V
- (11164)210 648 A
- 2370(})S
- 8418 V
- EP
- %%Page: 147 147
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 12 B
- (147)180 4248 A
- 900 V
- 7 LST
- (11165)210 648 A
- (else)168 2370 A
- 990 V
- (11166)210 648 A
- (cause_sig(proc_nr,)756 2706 A
- (SIGALRM);)378 3504 A
- 1080 V
- (11167)210 648 A
- (rp->p_alarm)462 2370 A
- 2874(=)S
- 2958(0;)S
- 1170 V
- (11168)210 648 A
- 2034(})S
- 1260 V
- (11169)210 648 A
- 1350 V
- (11170)210 648 A
- 2034(/*)S
- (Work)168 2160 A
- 2370(on)S
- (determining)462 2496 A
- (which)210 3000 A
- (alarm)210 3252 A
- 3504(is)S
- (next.)210 3630 A
- 3882(*/)S
- 1440 V
- (11171)210 648 A
- 2034(if)S
- ((rp->p_alarm)504 2160 A
- 2706(!=)S
- 2832(0)S
- 2916(&&)S
- (rp->p_alarm)462 3042 A
- 3546(<)S
- (next_alarm))462 3630 A
- 1530 V
- (11172)210 648 A
- (next_alarm)420 2370 A
- 2832(=)S
- (rp->p_alarm;)504 2916 A
- 1620 V
- (11173)210 648 A
- 1698(})S
- 1710 V
- (11174)210 648 A
- 1362(})S
- 1800 V
- (11175)210 648 A
- 1110(})S
- 1890 V
- (11176)210 648 A
- 1980 V
- (11177)210 648 A
- 1110(/*)S
- 1236(If)S
- 1362(a)S
- (user)168 1446 A
- (process)294 1656 A
- (has)126 1992 A
- (been)168 2160 A
- (running)294 2370 A
- (too)126 2706 A
- (long,)210 2874 A
- (pick)168 3126 A
- (another)294 3336 A
- (one.)168 3672 A
- 3882(*/)S
- 2070 V
- (11178)210 648 A
- 1110(if)S
- ((--sched_ticks)588 1236 A
- 1866(==)S
- 1992(0))S
- 2118({)S
- 2160 V
- (11179)210 648 A
- 1362(if)S
- ((bill_ptr)378 1488 A
- 1908(==)S
- (prev_ptr))378 2034 A
- (lock_sched();)546 2454 A
- 3042(/*)S
- (process)294 3168 A
- (has)126 3504 A
- (run)126 3672 A
- (too)126 3840 A
- (long)168 4008 A
- 4218(*/)S
- 2250 V
- (11180)210 648 A
- (sched_ticks)462 1362 A
- 1866(=)S
- (SCHED_RATE;)462 1950 A
- 3042(/*)S
- (reset)210 3168 A
- (quantum)294 3420 A
- 3756(*/)S
- 2340 V
- (11181)210 648 A
- (prev_ptr)336 1362 A
- 1740(=)S
- (bill_ptr;)378 1824 A
- 3042(/*)S
- (new)126 3168 A
- (previous)336 3336 A
- (process)294 3714 A
- 4050(*/)S
- 2430 V
- (11182)210 648 A
- 1110(})S
- 2520 V
- (11183)210 648 A
- 1026(})S
- 2790 V
- (11186)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2880 V
- (11187)210 648 A
- 1068(*)S
- (do_getuptime)504 2370 A
- 4260(*)S
- 2970 V
- (11188)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3060 V
- (11189)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_getuptime())588 1572 A
- 3150 V
- (11190)210 648 A
- 1026({)S
- 3240 V
- (11191)210 648 A
- 1026(/*)S
- (Get)126 1152 A
- (and)126 1320 A
- (return)252 1488 A
- (the)126 1782 A
- (current)294 1950 A
- (clock)210 2286 A
- (uptime)252 2538 A
- 2832(in)S
- (ticks.)252 2958 A
- 3252(*/)S
- 3330 V
- (11192)210 648 A
- 3420 V
- (11193)210 648 A
- (mc.NEW_TIME)462 1110 A
- 1614(=)S
- (realtime;)378 1698 A
- 2370(/*)S
- (current)294 2496 A
- (uptime)252 2832 A
- 3126(*/)S
- 3510 V
- (11194)210 648 A
- 1026(})S
- 3780 V
- (11197)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3870 V
- (11198)210 648 A
- 1068(*)S
- (get_uptime)420 2370 A
- 4260(*)S
- 3960 V
- (11199)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4050 V
- (11200)210 648 A
- (PUBLIC)252 1026 A
- (clock_t)294 1320 A
- (get_uptime())504 1656 A
- 4140 V
- (11201)210 648 A
- 1026({)S
- 4230 V
- (11202)210 648 A
- 1026(/*)S
- (Get)126 1152 A
- (and)126 1320 A
- (return)252 1488 A
- (the)126 1782 A
- (current)294 1950 A
- (clock)210 2286 A
- (uptime)252 2538 A
- 2832(in)S
- (ticks.)252 2958 A
- (This)168 3294 A
- (function)336 3504 A
- 3882(is)S
- 4320 V
- (11203)210 648 A
- 1068(*)S
- (designed)336 1152 A
- 1530(to)S
- 1656(be)S
- (called)252 1782 A
- (from)168 2076 A
- (other)210 2286 A
- (tasks,)252 2538 A
- 2832(so)S
- (they)168 2958 A
- (can)126 3168 A
- (get)126 3336 A
- (uptime)252 3504 A
- (without)294 3798 A
- 4410 V
- (11204)210 648 A
- 1068(*)S
- (the)126 1152 A
- (overhead)336 1320 A
- 1698(of)S
- (messages.)378 1824 A
- 2244(It)S
- (has)126 2370 A
- 2538(to)S
- 2664(be)S
- (careful)294 2790 A
- (about)210 3126 A
- (pending_ticks.)588 3378 A
- 4500 V
- (11205)210 648 A
- 1068(*/)S
- 4590 V
- (11206)210 648 A
- 4680 V
- (11207)210 648 A
- (clock_t)294 1110 A
- (uptime;)294 1446 A
- 4770 V
- (11208)210 648 A
- 4860 V
- (11209)210 648 A
- (lock();)294 1110 A
- 4950 V
- (11210)210 648 A
- (uptime)252 1110 A
- 1404(=)S
- (realtime)336 1488 A
- 1866(+)S
- (pending_ticks;)588 1950 A
- 5040 V
- (11211)210 648 A
- (unlock();)378 1110 A
- 5130 V
- (11212)210 648 A
- (return(uptime);)630 1110 A
- 5220 V
- (11213)210 648 A
- 1026(})S
- 5490 V
- (11216)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5580 V
- (11217)210 648 A
- 1068(*)S
- (do_get_time)462 2370 A
- 4260(*)S
- 5670 V
- (11218)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5760 V
- (11219)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_get_time())546 1572 A
- 5850 V
- (11220)210 648 A
- 1026({)S
- 5940 V
- (11221)210 648 A
- 1026(/*)S
- (Get)126 1152 A
- (and)126 1320 A
- (return)252 1488 A
- (the)126 1782 A
- (current)294 1950 A
- (clock)210 2286 A
- (time)168 2538 A
- 2748(in)S
- (seconds.)336 2874 A
- 3252(*/)S
- 6030 V
- (11222)210 648 A
- 6120 V
- (11223)210 648 A
- (mc.NEW_TIME)462 1110 A
- 1614(=)S
- (boot_time)378 1698 A
- 2118(+)S
- (realtime/HZ;)504 2202 A
- 3042(/*)S
- (current)294 3168 A
- (real)168 3504 A
- (time)168 3714 A
- 3924(*/)S
- 6210 V
- (11224)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 148 148
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (148)180 648 A
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 1080 V
- 7 LST
- (11227)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1170 V
- (11228)210 648 A
- 1068(*)S
- (do_set_time)462 2370 A
- 4260(*)S
- 1260 V
- (11229)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1350 V
- (11230)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_set_time(m_ptr))756 1572 A
- 1440 V
- (11231)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (request)294 2958 A
- (message)294 3294 A
- 3630(*/)S
- 1530 V
- (11232)210 648 A
- 1026({)S
- 1620 V
- (11233)210 648 A
- 1026(/*)S
- (Set)126 1152 A
- (the)126 1320 A
- (real)168 1488 A
- (time)168 1698 A
- (clock.)252 1908 A
- (Only)168 2244 A
- (the)126 2454 A
- (superuser)378 2622 A
- (can)126 3042 A
- (use)126 3210 A
- (this)168 3378 A
- (call.)210 3588 A
- 3840(*/)S
- 1710 V
- (11234)210 648 A
- 1800 V
- (11235)210 648 A
- (boot_time)378 1110 A
- 1530(=)S
- (m_ptr->NEW_TIME)630 1614 A
- 2286(-)S
- (realtime/HZ;)504 2370 A
- 1890 V
- (11236)210 648 A
- 1026(})S
- 2160 V
- (11239)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2250 V
- (11240)210 648 A
- 1068(*)S
- (do_setalarm)462 2370 A
- 4260(*)S
- 2340 V
- (11241)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2430 V
- (11242)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_setalarm(m_ptr))756 1572 A
- 2520 V
- (11243)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (request)294 2958 A
- (message)294 3294 A
- 3630(*/)S
- 2610 V
- (11244)210 648 A
- 1026({)S
- 2700 V
- (11245)210 648 A
- 1026(/*)S
- 1152(A)S
- (process)294 1236 A
- (wants)210 1572 A
- 1824(an)S
- (alarm)210 1950 A
- (signal)252 2202 A
- 2496(or)S
- 2622(a)S
- (task)168 2706 A
- (wants)210 2916 A
- 3168(a)S
- (given)210 3252 A
- (watch_dog)378 3504 A
- (function)336 3924 A
- 2790 V
- (11246)210 648 A
- 1068(*)S
- (called)252 1152 A
- (after)210 1446 A
- 1698(a)S
- (specified)378 1782 A
- (interval.)378 2202 A
- 2880 V
- (11247)210 648 A
- 1068(*/)S
- 2970 V
- (11248)210 648 A
- 3060 V
- (11249)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (proc)168 1782 A
- (*rp;)168 1992 A
- 3150 V
- (11250)210 648 A
- (int)126 1110 A
- (proc_nr;)336 1278 A
- 2370(/*)S
- (which)210 2496 A
- (process)294 2748 A
- (wants)210 3084 A
- (the)126 3336 A
- (alarm)210 3504 A
- 3756(*/)S
- 3240 V
- (11251)210 648 A
- (long)168 1110 A
- (delta_ticks;)504 1320 A
- 2370(/*)S
- 2496(in)S
- (how)126 2622 A
- (many)168 2790 A
- (clock)210 3000 A
- (ticks)210 3252 A
- (does)168 3504 A
- 3714(he)S
- (want)168 3840 A
- (it?)126 4050 A
- 4218(*/)S
- 3330 V
- (11252)210 648 A
- (watchdog_t)420 1110 A
- (function;)378 1572 A
- 2370(/*)S
- (function)336 2496 A
- 2874(to)S
- (call)168 3000 A
- ((tasks)252 3210 A
- (only))210 3504 A
- 3756(*/)S
- 3420 V
- (11253)210 648 A
- 3510 V
- (11254)210 648 A
- 1110(/*)S
- (Extract)294 1236 A
- (the)126 1572 A
- (parameters)420 1740 A
- (from)168 2202 A
- (the)126 2412 A
- (message.)336 2580 A
- 2958(*/)S
- 3600 V
- (11255)210 648 A
- (proc_nr)294 1110 A
- 1446(=)S
- (m_ptr->CLOCK_PROC_NR;)882 1530 A
- 2706(/*)S
- (process)294 2832 A
- 3168(to)S
- (interrupt)378 3294 A
- (later)210 3714 A
- 3966(*/)S
- 3690 V
- (11256)210 648 A
- (delta_ticks)462 1110 A
- 1614(=)S
- (m_ptr->DELTA_TICKS;)798 1698 A
- 2706(/*)S
- (how)126 2832 A
- (many)168 3000 A
- (ticks)210 3210 A
- 3462(to)S
- (wait)168 3588 A
- 3798(*/)S
- 3780 V
- (11257)210 648 A
- (function)336 1110 A
- 1488(=)S
- ((watchdog_t))504 1572 A
- (m_ptr->FUNC_TO_CALL;)840 2118 A
- 3870 V
- (11258)210 648 A
- 2706(/*)S
- (function)336 2832 A
- 3210(to)S
- (call)168 3336 A
- ((tasks)252 3546 A
- (only))210 3840 A
- 4092(*/)S
- 3960 V
- (11259)210 648 A
- 1110(rp)S
- 1236(=)S
- (proc_addr(proc_nr);)798 1320 A
- 4050 V
- (11260)210 648 A
- (mc.SECONDS_LEFT)630 1110 A
- 1782(=)S
- ((rp->p_alarm)504 1866 A
- 2412(==)S
- 2538(0)S
- 2622(?)S
- 2706(0)S
- 2790(:)S
- ((rp->p_alarm)504 2874 A
- 3420(-)S
- (realtime)/HZ)504 3504 A
- 4050();)S
- 4140 V
- (11261)210 648 A
- 1110(if)S
- ((!istaskp(rp)))588 1236 A
- (function=)378 1866 A
- 2286(0;)S
- 2706(/*)S
- (user)168 2832 A
- (processes)378 3042 A
- (get)126 3462 A
- (signaled)336 3630 A
- 4008(*/)S
- 4230 V
- (11262)210 648 A
- (common_setalarm(proc_nr,)1008 1110 A
- (delta_ticks,)504 2160 A
- (function);)420 2706 A
- 4320 V
- (11263)210 648 A
- 1026(})S
- 4590 V
- (11266)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4680 V
- (11267)210 648 A
- 1068(*)S
- (do_setsyn_alrm)588 2370 A
- 4260(*)S
- 4770 V
- (11268)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4860 V
- (11269)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_setsyn_alrm(m_ptr))882 1572 A
- 4950 V
- (11270)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (request)294 2958 A
- (message)294 3294 A
- 3630(*/)S
- 5040 V
- (11271)210 648 A
- 1026({)S
- 5130 V
- (11272)210 648 A
- 1026(/*)S
- 1152(A)S
- (process)294 1236 A
- (wants)210 1572 A
- 1824(a)S
- (synchronous)462 1908 A
- (alarm.)252 2412 A
- 5220 V
- (11273)210 648 A
- 1068(*/)S
- 5310 V
- (11274)210 648 A
- 5400 V
- (11275)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (proc)168 1782 A
- (*rp;)168 1992 A
- 5490 V
- (11276)210 648 A
- (int)126 1110 A
- (proc_nr;)336 1278 A
- 2370(/*)S
- (which)210 2496 A
- (process)294 2748 A
- (wants)210 3084 A
- (the)126 3336 A
- (alarm)210 3504 A
- 3756(*/)S
- 5580 V
- (11277)210 648 A
- (long)168 1110 A
- (delta_ticks;)504 1320 A
- 2370(/*)S
- 2496(in)S
- (how)126 2622 A
- (many)168 2790 A
- (clock)210 3000 A
- (ticks)210 3252 A
- (does)168 3504 A
- 3714(he)S
- (want)168 3840 A
- (it?)126 4050 A
- 4218(*/)S
- 5670 V
- (11278)210 648 A
- 5760 V
- (11279)210 648 A
- 1110(/*)S
- (Extract)294 1236 A
- (the)126 1572 A
- (parameters)420 1740 A
- (from)168 2202 A
- (the)126 2412 A
- (message.)336 2580 A
- 2958(*/)S
- 5850 V
- (11280)210 648 A
- (proc_nr)294 1110 A
- 1446(=)S
- (m_ptr->CLOCK_PROC_NR;)882 1530 A
- 2706(/*)S
- (process)294 2832 A
- 3168(to)S
- (interrupt)378 3294 A
- (later)210 3714 A
- 3966(*/)S
- 5940 V
- (11281)210 648 A
- (delta_ticks)462 1110 A
- 1614(=)S
- (m_ptr->DELTA_TICKS;)798 1698 A
- 2706(/*)S
- (how)126 2832 A
- (many)168 3000 A
- (ticks)210 3210 A
- 3462(to)S
- (wait)168 3588 A
- 3798(*/)S
- 6030 V
- (11282)210 648 A
- 1110(rp)S
- 1236(=)S
- (proc_addr(proc_nr);)798 1320 A
- 6120 V
- (11283)210 648 A
- (mc.SECONDS_LEFT)630 1110 A
- 1782(=)S
- ((rp->p_alarm)504 1866 A
- 2412(==)S
- 2538(0)S
- 2622(?)S
- 2706(0)S
- 2790(:)S
- ((rp->p_alarm)504 2874 A
- 3420(-)S
- (realtime)/HZ)504 3504 A
- 4050();)S
- 6210 V
- (11284)210 648 A
- (common_setalarm(proc_nr,)1008 1110 A
- (delta_ticks,)504 2160 A
- (cause_alarm);)546 2706 A
- 8418 V
- EP
- %%Page: 149 149
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 12 B
- (149)180 4248 A
- 900 V
- 7 LST
- (11285)210 648 A
- 1026(})S
- 1170 V
- (11288)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1260 V
- (11289)210 648 A
- 1068(*)S
- (common_setalarm)630 2370 A
- 4260(*)S
- 1350 V
- (11290)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1440 V
- (11291)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (common_setalarm(proc_nr,)1008 1572 A
- (delta_ticks,)504 2622 A
- (function))378 3168 A
- 1530 V
- (11292)210 648 A
- (int)126 1026 A
- (proc_nr;)336 1194 A
- 2370(/*)S
- (which)210 2496 A
- (process)294 2748 A
- (wants)210 3084 A
- (the)126 3336 A
- (alarm)210 3504 A
- 3756(*/)S
- 1620 V
- (11293)210 648 A
- (long)168 1026 A
- (delta_ticks;)504 1236 A
- 2370(/*)S
- 2496(in)S
- (how)126 2622 A
- (many)168 2790 A
- (clock)210 3000 A
- (ticks)210 3252 A
- (does)168 3504 A
- 3714(he)S
- (want)168 3840 A
- (it?)126 4050 A
- 4218(*/)S
- 1710 V
- (11294)210 648 A
- (watchdog_t)420 1026 A
- (function;)378 1488 A
- 2370(/*)S
- (function)336 2496 A
- 2874(to)S
- (call)168 3000 A
- 3210((0)S
- 3336(if)S
- (cause_sig)378 3462 A
- 3882(is)S
- 1800 V
- (11295)210 648 A
- 2412(*)S
- 2496(to)S
- 2622(be)S
- (called)252 2748 A
- 3042(*/)S
- 1890 V
- (11296)210 648 A
- 1026({)S
- 1980 V
- (11297)210 648 A
- 1026(/*)S
- (Finish)252 1152 A
- 1446(up)S
- (work)168 1572 A
- 1782(of)S
- (do_set_alarm)504 1908 A
- (and)126 2454 A
- (do_setsyn_alrm.)630 2622 A
- (Record)252 3336 A
- 3630(an)S
- (alarm)210 3756 A
- 2070 V
- (11298)210 648 A
- 1068(*)S
- (request)294 1152 A
- (and)126 1488 A
- (check)210 1656 A
- 1908(to)S
- (see)126 2034 A
- 2202(if)S
- 2328(it)S
- 2454(is)S
- (the)126 2580 A
- (next)168 2748 A
- (alarm)210 2958 A
- (needed.)294 3210 A
- 2160 V
- (11299)210 648 A
- 1068(*/)S
- 2250 V
- (11300)210 648 A
- 2340 V
- (11301)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (proc)168 1782 A
- (*rp;)168 1992 A
- 2430 V
- (11302)210 648 A
- 2520 V
- (11303)210 648 A
- 1110(rp)S
- 1236(=)S
- (proc_addr(proc_nr);)798 1320 A
- 2610 V
- (11304)210 648 A
- (rp->p_alarm)462 1110 A
- 1614(=)S
- ((delta_ticks)504 1698 A
- 2244(==)S
- 2370(0)S
- 2454(?)S
- 2538(0)S
- 2622(:)S
- (realtime)336 2706 A
- 3084(+)S
- (delta_ticks);)546 3168 A
- 2700 V
- (11305)210 648 A
- (watch_dog[proc_nr+NR_TASKS])1134 1110 A
- 2286(=)S
- (function;)378 2370 A
- 2790 V
- (11306)210 648 A
- 2880 V
- (11307)210 648 A
- 1110(/*)S
- (Which)210 1236 A
- (alarm)210 1488 A
- 1740(is)S
- (next?)210 1866 A
- 2118(*/)S
- 2970 V
- (11308)210 648 A
- (next_alarm)420 1110 A
- 1572(=)S
- (LONG_MAX;)378 1656 A
- 3060 V
- (11309)210 648 A
- (for)126 1110 A
- ((rp)126 1278 A
- 1446(=)S
- (BEG_PROC_ADDR;)588 1530 A
- 2160(rp)S
- 2286(<)S
- (END_PROC_ADDR;)588 2370 A
- (rp++))210 3000 A
- 3150 V
- (11310)210 648 A
- (if(rp->p_alarm)588 1362 A
- 1992(!=)S
- 2118(0)S
- 2202(&&)S
- (rp->p_alarm)462 2328 A
- 2832(<)S
- (next_alarm)next_alarm=rp->p_alarm;)1428 2916 A
- 3240 V
- (11311)210 648 A
- 3330 V
- (11312)210 648 A
- 1026(})S
- 3600 V
- (11315)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3690 V
- (11316)210 648 A
- 1068(*)S
- (cause_alarm)462 2370 A
- 4260(*)S
- 3780 V
- (11317)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3870 V
- (11318)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (cause_alarm())546 1572 A
- 3960 V
- (11319)210 648 A
- 1026({)S
- 4050 V
- (11320)210 648 A
- 1026(/*)S
- (Routine)294 1152 A
- (called)252 1488 A
- 1782(if)S
- 1908(a)S
- (timer)210 1992 A
- (goes)168 2244 A
- (off)126 2454 A
- (and)126 2622 A
- (the)126 2790 A
- (process)294 2958 A
- (requested)378 3294 A
- 3714(a)S
- (synchronous)462 3798 A
- 4140 V
- (11321)210 648 A
- 1068(*)S
- (alarm.)252 1152 A
- (The)126 1446 A
- (process)294 1614 A
- (number)252 1950 A
- 2244(is)S
- 2370(in)S
- (the)126 2496 A
- (global)252 2664 A
- (variable)336 2958 A
- (watchdog_proc)546 3336 A
- ((HACK).)294 3924 A
- 4230 V
- (11322)210 648 A
- 1068(*/)S
- 4320 V
- (11323)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 4410 V
- (11324)210 648 A
- 4500 V
- (11325)210 648 A
- (syn_table[watchdog_proc)966 1110 A
- 2118(+)S
- (NR_TASKS]=)420 2202 A
- (TRUE;)210 2664 A
- 4590 V
- (11326)210 648 A
- 1110(if)S
- ((!syn_al_alive))630 1236 A
- (send)168 1908 A
- ((SYN_ALRM_TASK,)630 2118 A
- (&mess);)294 2790 A
- 4680 V
- (11327)210 648 A
- 1026(})S
- 4950 V
- (11330)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5040 V
- (11331)210 648 A
- 1068(*)S
- (syn_alrm_task)546 2370 A
- 4260(*)S
- 5130 V
- (11332)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5220 V
- (11333)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (syn_alrm_task())630 1530 A
- 5310 V
- (11334)210 648 A
- 1026({)S
- 5400 V
- (11335)210 648 A
- 1026(/*)S
- (Main)168 1152 A
- (program)294 1362 A
- 1698(of)S
- (the)126 1824 A
- (synchronous)462 1992 A
- (alarm)210 2496 A
- (task.)210 2748 A
- 5490 V
- (11336)210 648 A
- 1068(*)S
- (This)168 1152 A
- (task)168 1362 A
- (receives)336 1572 A
- (messages)336 1950 A
- (only)168 2328 A
- (from)168 2538 A
- (cause_alarm)462 2748 A
- 3252(in)S
- (the)126 3378 A
- (clock)210 3546 A
- (task.)210 3798 A
- 5580 V
- (11337)210 648 A
- 1068(*)S
- 1152(It)S
- (sends)210 1278 A
- 1530(a)S
- (CLOCK_INT)378 1614 A
- (message)294 2034 A
- 2370(to)S
- 2496(a)S
- (process)294 2580 A
- (that)168 2916 A
- (requested)378 3126 A
- 3546(a)S
- (syn_alrm.)378 3630 A
- 5670 V
- (11338)210 648 A
- 1068(*)S
- (Synchronous)462 1152 A
- (alarms)252 1656 A
- (are)126 1950 A
- 2118(so)S
- (called)252 2244 A
- (because,)336 2538 A
- (unlike)252 2916 A
- 3210(a)S
- (signals)294 3294 A
- 3630(or)S
- (the)126 3756 A
- 5760 V
- (11339)210 648 A
- 1068(*)S
- (activation)420 1152 A
- 1614(of)S
- 1740(a)S
- (watchdog,)378 1824 A
- 2244(a)S
- (synchronous)462 2328 A
- (alarm)210 2832 A
- 3084(is)S
- (received)336 3210 A
- 3588(by)S
- 3714(a)S
- (process)294 3798 A
- 5850 V
- (11340)210 648 A
- 1068(*)S
- (when)168 1152 A
- 1362(it)S
- 1488(is)S
- 1614(in)S
- 1740(a)S
- (known)210 1824 A
- (part)168 2076 A
- 2286(of)S
- (its)126 2412 A
- (code,)210 2580 A
- (that)168 2832 A
- (is,)126 3042 A
- (when)168 3210 A
- 3420(it)S
- (has)126 3546 A
- (issued)252 3714 A
- 5940 V
- (11341)210 648 A
- 1068(*)S
- 1152(a)S
- (call)168 1236 A
- 1446(to)S
- (receive)294 1572 A
- 1908(a)S
- (message.)336 1992 A
- 6030 V
- (11342)210 648 A
- 1068(*/)S
- 6120 V
- (11343)210 648 A
- 6210 V
- (11344)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 8418 V
- EP
- %%Page: 150 150
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (150)180 648 A
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11345)210 648 A
- (int)126 1110 A
- (work_done;)420 1278 A
- 2034(/*)S
- (ready)210 2160 A
- 2412(to)S
- (sleep)210 2538 A
- 2790(?)S
- 2874(*/)S
- 990 V
- (11346)210 648 A
- (int)126 1110 A
- (*al_ptr;)336 1278 A
- 2034(/*)S
- (pointer)294 2160 A
- 2496(in)S
- (syn_table)378 2622 A
- 3042(*/)S
- 1080 V
- (11347)210 648 A
- (int)126 1110 A
- 1278(i;)S
- 1170 V
- (11348)210 648 A
- 1260 V
- (11349)210 648 A
- (syn_al_alive=)546 1110 A
- (TRUE;)210 1698 A
- 1350 V
- (11350)210 648 A
- (for)126 1110 A
- ((i=)126 1278 A
- 1446(0,)S
- (al_ptr=)294 1572 A
- (syn_table;)420 1908 A
- (i<NR_TASKS+NR_PROCS;)840 2370 A
- (i++,)168 3252 A
- (al_ptr++))378 3462 A
- 1440 V
- (11351)210 648 A
- (*al_ptr=)336 1362 A
- (FALSE;)252 1740 A
- 1530 V
- (11352)210 648 A
- 1620 V
- (11353)210 648 A
- (while)210 1110 A
- ((TRUE))252 1362 A
- 1656({)S
- 1710 V
- (11354)210 648 A
- (work_done=)420 1362 A
- (TRUE;)210 1824 A
- 1800 V
- (11355)210 648 A
- (for)126 1362 A
- ((i=)126 1530 A
- 1698(0,)S
- (al_ptr=)294 1824 A
- (syn_table;)420 2160 A
- (i<NR_TASKS+NR_PROCS;)840 2622 A
- (i++,)168 3504 A
- (al_ptr++))378 3714 A
- 1890 V
- (11356)210 648 A
- 1698(if)S
- ((*al_ptr))378 1824 A
- 2244({)S
- 1980 V
- (11357)210 648 A
- (*al_ptr=)336 2034 A
- (FALSE;)252 2412 A
- 2070 V
- (11358)210 648 A
- (mess.m_type=)504 2034 A
- (CLOCK_INT;)420 2580 A
- 2160 V
- (11359)210 648 A
- (send)168 2034 A
- ((i-NR_TASKS,)504 2244 A
- (&mess);)294 2790 A
- 2250 V
- (11360)210 648 A
- (work_done=)420 2034 A
- (FALSE;)252 2496 A
- 2340 V
- (11361)210 648 A
- 1698(})S
- 2430 V
- (11362)210 648 A
- 1362(if)S
- ((work_done))462 1488 A
- 1992({)S
- 2520 V
- (11363)210 648 A
- (syn_al_alive=)546 1698 A
- (FALSE;)252 2286 A
- 2610 V
- (11364)210 648 A
- (receive)294 1698 A
- ((CLOCK,)294 2034 A
- (&mess);)294 2370 A
- 2700 V
- (11365)210 648 A
- (syn_al_alive=)546 1698 A
- (TRUE;)210 2286 A
- 2790 V
- (11366)210 648 A
- 1362(})S
- 2880 V
- (11367)210 648 A
- 1110(})S
- 2970 V
- (11368)210 648 A
- 1026(})S
- 3240 V
- (11371)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3330 V
- (11372)210 648 A
- 1068(*)S
- (clock_handler)546 2370 A
- 4260(*)S
- 3420 V
- (11373)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3510 V
- (11374)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (clock_handler(irq))756 1530 A
- 3600 V
- (11375)210 648 A
- (int)126 1026 A
- (irq;)168 1194 A
- 3690 V
- (11376)210 648 A
- 1026({)S
- 3780 V
- (11377)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (executes)336 1362 A
- 1740(on)S
- (every)210 1866 A
- (clock)210 2118 A
- (tick)168 2370 A
- ((i.e.,)252 2580 A
- (every)210 2874 A
- (time)168 3126 A
- (the)126 3336 A
- (timer)210 3504 A
- (chip)168 3756 A
- 3870 V
- (11378)210 648 A
- 1068(*)S
- (generates)378 1152 A
- 1572(an)S
- (interrupt).)462 1698 A
- 2202(It)S
- (does)168 2328 A
- 2538(a)S
- (little)252 2622 A
- (bit)126 2916 A
- 3084(of)S
- (work)168 3210 A
- 3420(so)S
- (the)126 3546 A
- (clock)210 3714 A
- 3960 V
- (11379)210 648 A
- 1068(*)S
- (task)168 1152 A
- (does)168 1362 A
- (not)126 1572 A
- (have)168 1740 A
- 1950(to)S
- 2076(be)S
- (called)252 2202 A
- 2496(on)S
- (every)210 2622 A
- (tick.)210 2874 A
- 4050 V
- (11380)210 648 A
- 1068(*)S
- 4140 V
- (11381)210 648 A
- 1068(*)S
- (Switch)252 1152 A
- (context)294 1446 A
- 1782(to)S
- (do_clocktick)504 1908 A
- 2454(if)S
- 2580(an)S
- (alarm)210 2706 A
- (has)126 2958 A
- (gone)168 3126 A
- (off.)168 3336 A
- 4230 V
- (11382)210 648 A
- 1068(*)S
- (Also)168 1152 A
- (switch)252 1362 A
- (there)210 1656 A
- 1908(to)S
- (reschedule)420 2034 A
- 2496(if)S
- (the)126 2622 A
- (reschedule)420 2790 A
- (will)168 3252 A
- 3462(do)S
- (something.)420 3588 A
- 4320 V
- (11383)210 648 A
- 1068(*)S
- (This)168 1152 A
- (happens)294 1362 A
- (when)168 1698 A
- 4410 V
- (11384)210 648 A
- 1068(*)S
- ((1))126 1362 A
- (quantum)294 1530 A
- (has)126 1866 A
- (expired)294 2034 A
- 4500 V
- (11385)210 648 A
- 1068(*)S
- ((2))126 1362 A
- (current)294 1530 A
- (process)294 1866 A
- (received)336 2202 A
- (full)168 2580 A
- (quantum)294 2790 A
- ((as)126 3126 A
- (clock)210 3294 A
- (sampled)294 3546 A
- (it!))168 3882 A
- 4590 V
- (11386)210 648 A
- 1068(*)S
- ((3))126 1362 A
- (something)378 1530 A
- (else)168 1950 A
- 2160(is)S
- (ready)210 2286 A
- 2538(to)S
- (run.)168 2664 A
- 4680 V
- (11387)210 648 A
- 1068(*)S
- (Also)168 1152 A
- (call)168 1362 A
- (TTY)126 1572 A
- (and)126 1740 A
- (PRINTER)294 1908 A
- (and)126 2244 A
- (let)126 2412 A
- (them)168 2580 A
- 2790(do)S
- (whatever)336 2916 A
- 3294(is)S
- (necessary.)420 3420 A
- 4770 V
- (11388)210 648 A
- 1068(*)S
- 4860 V
- (11389)210 648 A
- 1068(*)S
- (Many)168 1152 A
- (global)252 1362 A
- (global)252 1656 A
- (and)126 1950 A
- (static)252 2118 A
- (variables)378 2412 A
- (are)126 2832 A
- (accessed)336 3000 A
- (here.)210 3378 A
- (The)126 3672 A
- (safety)252 3840 A
- 4950 V
- (11390)210 648 A
- 1068(*)S
- 1152(of)S
- (this)168 1278 A
- (must)168 1488 A
- 1698(be)S
- (justified.)420 1824 A
- (Most)168 2328 A
- 2538(of)S
- (them)168 2664 A
- (are)126 2874 A
- (not)126 3042 A
- (changed)294 3210 A
- (here:)210 3546 A
- 5040 V
- (11391)210 648 A
- 1068(*)S
- (k_reenter:)420 1362 A
- 5130 V
- (11392)210 648 A
- 1068(*)S
- (This)168 1698 A
- (safely)252 1908 A
- (tells)210 2202 A
- 2454(if)S
- (the)126 2580 A
- (clock)210 2748 A
- (interrupt)378 3000 A
- 3420(is)S
- (nested.)294 3546 A
- 5220 V
- (11393)210 648 A
- 1068(*)S
- (proc_ptr,)378 1362 A
- (bill_ptr:)378 1782 A
- 5310 V
- (11394)210 648 A
- 1068(*)S
- (These)210 1698 A
- (are)126 1950 A
- (used)168 2118 A
- (for)126 2328 A
- (accounting.)462 2496 A
- 3042(It)S
- (does)168 3168 A
- (not)126 3378 A
- (matter)252 3546 A
- 3840(if)S
- (proc.c)252 3966 A
- 5400 V
- (11395)210 648 A
- 1068(*)S
- 1698(is)S
- (changing)336 1824 A
- (them,)210 2202 A
- (provided)336 2454 A
- (they)168 2832 A
- (are)126 3042 A
- (always)252 3210 A
- (valid)210 3504 A
- (pointers,)378 3756 A
- 5490 V
- (11396)210 648 A
- 1068(*)S
- (since)210 1698 A
- 1950(at)S
- (worst)210 2076 A
- (the)126 2328 A
- (previous)336 2496 A
- (process)294 2874 A
- (would)210 3210 A
- 3462(be)S
- (billed.)294 3588 A
- 5580 V
- (11397)210 648 A
- 1068(*)S
- (next_alarm,)462 1362 A
- (realtime,)378 1866 A
- (sched_ticks,)504 2286 A
- (bill_ptr,)378 2832 A
- (prev_ptr,)378 3252 A
- 5670 V
- (11398)210 648 A
- 1068(*)S
- (rdy_head[USER_Q]:)714 1362 A
- 5760 V
- (11399)210 648 A
- 1068(*)S
- (These)210 1698 A
- (are)126 1950 A
- (tested)252 2118 A
- 2412(to)S
- (decide)252 2538 A
- (whether)294 2832 A
- 3168(to)S
- (call)168 3294 A
- (interrupt().)504 3504 A
- 4092(It)S
- 5850 V
- (11400)210 648 A
- 1068(*)S
- (does)168 1698 A
- (not)126 1908 A
- (matter)252 2076 A
- 2370(if)S
- (the)126 2496 A
- (test)168 2664 A
- 2874(is)S
- (sometimes)378 3000 A
- ((rarely))336 3420 A
- (backwards)378 3798 A
- 5940 V
- (11401)210 648 A
- 1068(*)S
- (due)126 1698 A
- 1866(to)S
- 1992(a)S
- (race,)210 2076 A
- (since)210 2328 A
- (this)168 2580 A
- (will)168 2790 A
- (only)168 3000 A
- (delay)210 3210 A
- (the)126 3462 A
- (high-level)420 3630 A
- 6030 V
- (11402)210 648 A
- 1068(*)S
- (processing)420 1698 A
- 2160(by)S
- (one)126 2286 A
- (tick,)210 2454 A
- 2706(or)S
- (call)168 2832 A
- (the)126 3042 A
- (high)168 3210 A
- (level)210 3420 A
- (unnecessarily.)588 3672 A
- 6120 V
- (11403)210 648 A
- 1068(*)S
- (The)126 1152 A
- (variables)378 1320 A
- (which)210 1740 A
- (are)126 1992 A
- (changed)294 2160 A
- (require)294 2496 A
- (more)168 2832 A
- (care:)210 3042 A
- 6210 V
- (11404)210 648 A
- 1068(*)S
- (rp->user_time,)588 1362 A
- (rp->sys_time:)546 1992 A
- 8418 V
- EP
- %%Page: 151 151
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 12 B
- (151)180 4248 A
- 900 V
- 7 LST
- (11405)210 648 A
- 1068(*)S
- (These)210 1698 A
- (are)126 1950 A
- (protected)378 2118 A
- 2538(by)S
- (explicit)336 2664 A
- (locks)210 3042 A
- 3294(in)S
- (system.c.)378 3420 A
- (They)168 3882 A
- (are)126 4092 A
- 990 V
- (11406)210 648 A
- 1068(*)S
- (not)126 1698 A
- (properly)336 1866 A
- (protected)378 2244 A
- 2664(in)S
- (dmp.c)210 2790 A
- ((the)168 3042 A
- (increment)378 3252 A
- (here)168 3672 A
- 3882(is)S
- (not)126 4008 A
- 1080 V
- (11407)210 648 A
- 1068(*)S
- (atomic))294 1698 A
- (but)126 2034 A
- (that)168 2202 A
- (hardly)252 2412 A
- (matters.)336 2706 A
- 1170 V
- (11408)210 648 A
- 1068(*)S
- (pending_ticks:)588 1362 A
- 1260 V
- (11409)210 648 A
- 1068(*)S
- (This)168 1698 A
- 1908(is)S
- (protected)378 2034 A
- 2454(by)S
- (explicit)336 2580 A
- (locks)210 2958 A
- 3210(in)S
- (clock.c.)336 3336 A
- (Don't)210 3756 A
- 1350 V
- (11410)210 648 A
- 1068(*)S
- (update)252 1698 A
- (realtime)336 1992 A
- (directly,)378 2370 A
- (since)210 2790 A
- (there)210 3042 A
- (are)126 3294 A
- (too)126 3462 A
- (many)168 3630 A
- 1440 V
- (11411)210 648 A
- 1068(*)S
- (references)420 1698 A
- 2160(to)S
- 2286(it)S
- 2412(to)S
- (guard)210 2538 A
- (conveniently.)546 2790 A
- 1530 V
- (11412)210 648 A
- 1068(*)S
- (lost_ticks:)462 1362 A
- 1620 V
- (11413)210 648 A
- 1068(*)S
- (Clock)210 1698 A
- (ticks)210 1950 A
- (counted)294 2202 A
- (outside)294 2538 A
- (the)126 2874 A
- (clock)210 3042 A
- (task.)210 3294 A
- 1710 V
- (11414)210 648 A
- 1068(*)S
- (sched_ticks,)504 1362 A
- (prev_ptr:)378 1908 A
- 1800 V
- (11415)210 648 A
- 1068(*)S
- (Updating)336 1698 A
- (these)210 2076 A
- (competes)336 2328 A
- (with)168 2706 A
- (similar)294 2916 A
- (code)168 3252 A
- 3462(in)S
- (do_clocktick().)630 3588 A
- 1890 V
- (11416)210 648 A
- 1068(*)S
- 1698(No)S
- (lock)168 1824 A
- 2034(is)S
- (necessary,)420 2160 A
- (because)294 2622 A
- 2958(if)S
- (bad)126 3084 A
- (things)252 3252 A
- (happen)252 3546 A
- (here)168 3840 A
- 1980 V
- (11417)210 648 A
- 1068(*)S
- ((like)210 1698 A
- (sched_ticks)462 1950 A
- (going)210 2454 A
- (negative),)420 2706 A
- (the)126 3168 A
- (code)168 3336 A
- 3546(in)S
- (do_clocktick())588 3672 A
- 2070 V
- (11418)210 648 A
- 1068(*)S
- (will)168 1698 A
- (restore)294 1908 A
- (the)126 2244 A
- (variables)378 2412 A
- 2832(to)S
- (reasonable)420 2958 A
- (values,)294 3420 A
- (and)126 3756 A
- 3924(an)S
- 2160 V
- (11419)210 648 A
- 1068(*)S
- (occasional)420 1698 A
- (missed)252 2160 A
- 2454(or)S
- (extra)210 2580 A
- (sched())294 2832 A
- 3168(is)S
- (harmless.)378 3294 A
- 2250 V
- (11420)210 648 A
- 1068(*)S
- 2340 V
- (11421)210 648 A
- 1068(*)S
- (Are)126 1152 A
- (these)210 1320 A
- (complications)546 1572 A
- (worth)210 2160 A
- (the)126 2412 A
- (trouble?)336 2580 A
- (Well,)210 3000 A
- (they)168 3252 A
- (make)168 3462 A
- (the)126 3672 A
- (system)252 3840 A
- (15%)126 4134 A
- 2430 V
- (11422)210 648 A
- 1068(*)S
- (faster)252 1152 A
- 1446(on)S
- 1572(a)S
- (5MHz)168 1656 A
- (8088,)210 1866 A
- (and)126 2118 A
- (make)168 2286 A
- (task)168 2496 A
- (debugging)378 2706 A
- (much)168 3126 A
- (easier)252 3336 A
- (since)210 3630 A
- (there)210 3882 A
- (are)126 4134 A
- 2520 V
- (11423)210 648 A
- 1068(*)S
- 1152(no)S
- (task)168 1278 A
- (switches)336 1488 A
- 1866(on)S
- 1992(an)S
- (inactive)336 2118 A
- (system.)294 2496 A
- 2610 V
- (11424)210 648 A
- 1068(*/)S
- 2700 V
- (11425)210 648 A
- 2790 V
- (11426)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (proc)168 1782 A
- (*rp;)168 1992 A
- 2880 V
- (11427)210 648 A
- (register)336 1110 A
- (unsigned)336 1488 A
- (ticks;)252 1866 A
- 2970 V
- (11428)210 648 A
- (clock_t)294 1110 A
- (now;)168 1446 A
- 3060 V
- (11429)210 648 A
- 3150 V
- (11430)210 648 A
- 1110(if)S
- ((ps_mca))336 1236 A
- 1614({)S
- 3240 V
- (11431)210 648 A
- 1362(/*)S
- (Acknowledge)462 1488 A
- (the)126 1992 A
- (PS/2)168 2160 A
- (clock)210 2370 A
- (interrupt.)420 2622 A
- 3084(*/)S
- 3330 V
- (11432)210 648 A
- (out_byte(PORT_B,)672 1362 A
- (in_byte(PORT_B))630 2076 A
- 2748(|)S
- (CLOCK_ACK_BIT);)630 2832 A
- 3420 V
- (11433)210 648 A
- 1110(})S
- 3510 V
- (11434)210 648 A
- 3600 V
- (11435)210 648 A
- 1110(/*)S
- (Update)252 1236 A
- (user)168 1530 A
- (and)126 1740 A
- (system)252 1908 A
- (accounting)420 2202 A
- (times.)252 2664 A
- 3690 V
- (11436)210 648 A
- 1152(*)S
- (First)210 1236 A
- (charge)252 1488 A
- (the)126 1782 A
- (current)294 1950 A
- (process)294 2286 A
- (for)126 2622 A
- (user)168 2790 A
- (time.)210 3000 A
- 3780 V
- (11437)210 648 A
- 1152(*)S
- 1236(If)S
- (the)126 1362 A
- (current)294 1530 A
- (process)294 1866 A
- 2202(is)S
- (not)126 2328 A
- (the)126 2496 A
- (billable)336 2664 A
- (process)294 3042 A
- ((usually)336 3378 A
- (because)294 3756 A
- 4092(it)S
- 3870 V
- (11438)210 648 A
- 1152(*)S
- 1236(is)S
- 1362(a)S
- (task),)252 1446 A
- (charge)252 1740 A
- (the)126 2034 A
- (billable)336 2202 A
- (process)294 2580 A
- (for)126 2916 A
- (system)252 3084 A
- (time)168 3378 A
- 3588(as)S
- (well.)210 3714 A
- 3960 V
- (11439)210 648 A
- 1152(*)S
- (Thus)168 1236 A
- (the)126 1446 A
- (unbillable)420 1614 A
- (tasks')252 2076 A
- (user)168 2370 A
- (time)168 2580 A
- 2790(is)S
- (the)126 2916 A
- (billable)336 3084 A
- (users')252 3462 A
- (system)252 3756 A
- (time.)210 4050 A
- 4050 V
- (11440)210 648 A
- 1152(*/)S
- 4140 V
- (11441)210 648 A
- 1110(if)S
- ((k_reenter)420 1236 A
- 1698(!=)S
- 1824(0))S
- 4230 V
- (11442)210 648 A
- 1362(rp)S
- 1488(=)S
- (proc_addr(HARDWARE);)840 1572 A
- 4320 V
- (11443)210 648 A
- (else)168 1110 A
- 4410 V
- (11444)210 648 A
- 1362(rp)S
- 1488(=)S
- (proc_ptr;)378 1572 A
- 4500 V
- (11445)210 648 A
- (ticks)210 1110 A
- 1362(=)S
- (lost_ticks)420 1446 A
- 1908(+)S
- 1992(1;)S
- 4590 V
- (11446)210 648 A
- (lost_ticks)420 1110 A
- 1572(=)S
- 1656(0;)S
- 4680 V
- (11447)210 648 A
- (rp->user_time)546 1110 A
- 1698(+=)S
- (ticks;)252 1824 A
- 4770 V
- (11448)210 648 A
- 1110(if)S
- ((rp)126 1236 A
- 1404(!=)S
- (bill_ptr)336 1530 A
- 1908(&&)S
- 2034(rp)S
- 2160(!=)S
- (proc_addr(IDLE)))672 2286 A
- (bill_ptr->sys_time)756 3000 A
- 3798(+=)S
- (ticks;)252 3924 A
- 4860 V
- (11449)210 648 A
- 4950 V
- (11450)210 648 A
- (pending_ticks)546 1110 A
- 1698(+=)S
- (ticks;)252 1824 A
- 5040 V
- (11451)210 648 A
- (now)126 1110 A
- 1278(=)S
- (realtime)336 1362 A
- 1740(+)S
- (pending_ticks;)588 1824 A
- 5130 V
- (11452)210 648 A
- 1110(if)S
- ((tty_timeout)504 1236 A
- 1782(<=)S
- (now))168 1908 A
- (tty_wakeup(now);)672 2118 A
- 3042(/*)S
- (possibly)336 3168 A
- (wake)168 3546 A
- 3756(up)S
- (TTY)126 3882 A
- 4050(*/)S
- 5220 V
- (11453)210 648 A
- (pr_restart();)546 1110 A
- 3042(/*)S
- (possibly)336 3168 A
- (restart)294 3546 A
- (printer)294 3882 A
- 4218(*/)S
- 5310 V
- (11454)210 648 A
- 5400 V
- (11455)210 648 A
- 1110(if)S
- ((next_alarm)462 1236 A
- 1740(<=)S
- (now)126 1866 A
- 2034(||)S
- 5490 V
- (11456)210 648 A
- (sched_ticks)462 1278 A
- 1782(==)S
- 1908(1)S
- 1992(&&)S
- 5580 V
- (11457)210 648 A
- (bill_ptr)336 1278 A
- 1656(==)S
- (prev_ptr)336 1782 A
- 2160(&&)S
- 5670 V
- (11458)210 648 A
- (rdy_head[USER_Q])672 1278 A
- 1992(!=)S
- (NIL_PROC))378 2118 A
- 2538({)S
- 5760 V
- (11459)210 648 A
- (interrupt(CLOCK);)714 1362 A
- 5850 V
- (11460)210 648 A
- (return)252 1362 A
- 1656(1;)S
- 2034(/*)S
- (Reenable)336 2160 A
- (interrupts)420 2538 A
- 3000(*/)S
- 5940 V
- (11461)210 648 A
- 1110(})S
- 6030 V
- (11462)210 648 A
- 6120 V
- (11463)210 648 A
- 1110(if)S
- ((--sched_ticks)588 1236 A
- 1866(==)S
- 1992(0))S
- 2118({)S
- 6210 V
- (11464)210 648 A
- 1362(/*)S
- 1488(If)S
- (bill_ptr)336 1614 A
- 1992(==)S
- (prev_ptr,)378 2118 A
- 2538(no)S
- (ready)210 2664 A
- (users)210 2916 A
- 3168(so)S
- (don't)210 3294 A
- (need)168 3546 A
- (sched().)336 3756 A
- 4134(*/)S
- 8418 V
- EP
- %%Page: 152 152
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (152)180 648 A
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11465)210 648 A
- (sched_ticks)462 1362 A
- 1866(=)S
- (SCHED_RATE;)462 1950 A
- 2706(/*)S
- (reset)210 2832 A
- (quantum)294 3084 A
- 3420(*/)S
- 990 V
- (11466)210 648 A
- (prev_ptr)336 1362 A
- 1740(=)S
- (bill_ptr;)378 1824 A
- 2706(/*)S
- (new)126 2832 A
- (previous)336 3000 A
- (process)294 3378 A
- 3714(*/)S
- 1080 V
- (11467)210 648 A
- 1110(})S
- 1170 V
- (11468)210 648 A
- (return)252 1110 A
- 1404(1;)S
- 1698(/*)S
- (Reenable)336 1824 A
- (clock)210 2202 A
- (interrupt)378 2454 A
- 2874(*/)S
- 1260 V
- (11469)210 648 A
- 1026(})S
- 1440 V
- (11471)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1530 V
- (11472)210 648 A
- 1068(*)S
- (init_clock)420 2370 A
- 4260(*)S
- 1620 V
- (11473)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1710 V
- (11474)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (init_clock())504 1572 A
- 1800 V
- (11475)210 648 A
- 1026({)S
- 1890 V
- (11476)210 648 A
- 1026(/*)S
- (Initialize)420 1152 A
- (channel)294 1614 A
- 1950(0)S
- 2034(of)S
- (the)126 2160 A
- (8253A)210 2328 A
- (timer)210 2580 A
- 2832(to)S
- (e.g.)168 2958 A
- 3168(60)S
- (Hz.)126 3294 A
- 3462(*/)S
- 1980 V
- (11477)210 648 A
- 2070 V
- (11478)210 648 A
- (out_byte(TIMER_MODE,)840 1110 A
- (SQUARE_WAVE);)546 1992 A
- 2706(/*)S
- (set)126 2832 A
- (timer)210 3000 A
- 3252(to)S
- (run)126 3378 A
- (continuously)504 3546 A
- 4092(*/)S
- 2160 V
- (11479)210 648 A
- (out_byte(TIMER0,)672 1110 A
- (TIMER_COUNT);)546 1824 A
- 2706(/*)S
- (load)168 2832 A
- (timer)210 3042 A
- (low)126 3294 A
- (byte)168 3462 A
- 3672(*/)S
- 2250 V
- (11480)210 648 A
- (out_byte(TIMER0,)672 1110 A
- (TIMER_COUNT)462 1824 A
- 2328(>>)S
- (8);)126 2454 A
- 2706(/*)S
- (load)168 2832 A
- (timer)210 3042 A
- (high)168 3294 A
- (byte)168 3504 A
- 3714(*/)S
- 2340 V
- (11481)210 648 A
- (put_irq_handler(CLOCK_IRQ,)1092 1110 A
- (clock_handler);)630 2244 A
- 3042(/*)S
- (set)126 3168 A
- (the)126 3336 A
- (interrupt)378 3504 A
- (handler)294 3924 A
- 4260(*/)S
- 2430 V
- (11482)210 648 A
- (enable_irq(CLOCK_IRQ);)924 1110 A
- 2706(/*)S
- (ready)210 2832 A
- (for)126 3084 A
- (clock)210 3252 A
- (interrupts)420 3504 A
- 3966(*/)S
- 2520 V
- (11483)210 648 A
- 1026(})S
- 2790 V
- (11486)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2880 V
- (11487)210 648 A
- 1068(*)S
- (clock_stop)420 2370 A
- 4260(*)S
- 2970 V
- (11488)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3060 V
- (11489)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (clock_stop())504 1530 A
- 3150 V
- (11490)210 648 A
- 1026({)S
- 3240 V
- (11491)210 648 A
- 1026(/*)S
- (Reset)210 1152 A
- (the)126 1404 A
- (clock)210 1572 A
- 1824(to)S
- (the)126 1950 A
- (BIOS)168 2118 A
- (rate.)210 2328 A
- ((For)168 2580 A
- (rebooting))420 2790 A
- 3252(*/)S
- 3330 V
- (11492)210 648 A
- 3420 V
- (11493)210 648 A
- (out_byte(TIMER_MODE,)840 1110 A
- (0x36);)252 1992 A
- 3510 V
- (11494)210 648 A
- (out_byte(TIMER0,)672 1110 A
- (0);)126 1824 A
- 3600 V
- (11495)210 648 A
- (out_byte(TIMER0,)672 1110 A
- (0);)126 1824 A
- 3690 V
- (11496)210 648 A
- 1026(})S
- 3960 V
- (11499)210 648 A
- (/*==========================================================================*)3234 1026 A
- 4050 V
- (11500)210 648 A
- 1068(*)S
- (milli_delay)462 2370 A
- 4218(*)S
- 4140 V
- (11501)210 648 A
- (*==========================================================================*/)3234 1068 A
- 4230 V
- (11502)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (milli_delay(millisec))882 1530 A
- 4320 V
- (11503)210 648 A
- (unsigned)336 1026 A
- (millisec;)378 1404 A
- 4410 V
- (11504)210 648 A
- 1026({)S
- 4500 V
- (11505)210 648 A
- 1026(/*)S
- (Delay)210 1152 A
- (some)168 1404 A
- (milliseconds.)546 1614 A
- 2202(*/)S
- 4590 V
- (11506)210 648 A
- 4680 V
- (11507)210 648 A
- (struct)252 1110 A
- (milli_state)462 1404 A
- (ms;)126 1908 A
- 4770 V
- (11508)210 648 A
- 4860 V
- (11509)210 648 A
- (milli_start(&ms);)714 1110 A
- 4950 V
- (11510)210 648 A
- (while)210 1110 A
- ((milli_elapsed(&ms))798 1362 A
- 2202(<)S
- (millisec))378 2286 A
- 2706({})S
- 5040 V
- (11511)210 648 A
- 1026(})S
- 5220 V
- (11513)210 648 A
- (/*==========================================================================*)3234 1026 A
- 5310 V
- (11514)210 648 A
- 1068(*)S
- (milli_start)462 2370 A
- 4218(*)S
- 5400 V
- (11515)210 648 A
- (*==========================================================================*/)3234 1068 A
- 5490 V
- (11516)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (milli_start(msp))672 1530 A
- 5580 V
- (11517)210 648 A
- (struct)252 1026 A
- (milli_state)462 1320 A
- (*msp;)210 1824 A
- 5670 V
- (11518)210 648 A
- 1026({)S
- 5760 V
- (11519)210 648 A
- 1026(/*)S
- (Prepare)294 1152 A
- (for)126 1488 A
- (calls)210 1656 A
- 1908(to)S
- (milli_elapsed().)672 2034 A
- 2748(*/)S
- 5850 V
- (11520)210 648 A
- 5940 V
- (11521)210 648 A
- (msp->prev_count)630 1110 A
- 1782(=)S
- 1866(0;)S
- 6030 V
- (11522)210 648 A
- (msp->accum_count)672 1110 A
- 1824(=)S
- 1908(0;)S
- 6120 V
- (11523)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 153 153
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2027(File:)S
- 2260(src/kernel/clock.c)S
- 12 B
- (153)180 4248 A
- 990 V
- 7 LST
- (11526)210 648 A
- (/*==========================================================================*)3234 1026 A
- 1080 V
- (11527)210 648 A
- 1068(*)S
- (milli_elapsed)546 2370 A
- 4218(*)S
- 1170 V
- (11528)210 648 A
- (*==========================================================================*/)3234 1068 A
- 1260 V
- (11529)210 648 A
- (PUBLIC)252 1026 A
- (unsigned)336 1320 A
- (milli_elapsed(msp))756 1698 A
- 1350 V
- (11530)210 648 A
- (struct)252 1026 A
- (milli_state)462 1320 A
- (*msp;)210 1824 A
- 1440 V
- (11531)210 648 A
- 1026({)S
- 1530 V
- (11532)210 648 A
- 1026(/*)S
- (Return)252 1152 A
- (the)126 1446 A
- (number)252 1614 A
- 1908(of)S
- (milliseconds)504 2034 A
- (since)210 2580 A
- (the)126 2832 A
- (call)168 3000 A
- 3210(to)S
- (milli_start().)588 3336 A
- (Must)168 4008 A
- 4218(be)S
- 1620 V
- (11533)210 648 A
- 1068(*)S
- (polled)252 1152 A
- (rapidly.)336 1446 A
- 1710 V
- (11534)210 648 A
- 1068(*/)S
- 1800 V
- (11535)210 648 A
- (unsigned)336 1110 A
- (count;)252 1488 A
- 1890 V
- (11536)210 648 A
- 1980 V
- (11537)210 648 A
- 1110(/*)S
- (Read)168 1236 A
- (the)126 1446 A
- (counter)294 1614 A
- (for)126 1950 A
- (channel)294 2118 A
- 2454(0)S
- 2538(of)S
- (the)126 2664 A
- (8253A)210 2832 A
- (timer.)252 3084 A
- (The)126 3420 A
- (counter)294 3588 A
- 2070 V
- (11538)210 648 A
- 1152(*)S
- (decrements)420 1236 A
- 1698(at)S
- (twice)210 1824 A
- (the)126 2076 A
- (timer)210 2244 A
- (frequency)378 2496 A
- ((one)168 2916 A
- (full)168 3126 A
- (cycle)210 3336 A
- (for)126 3588 A
- (each)168 3756 A
- 2160 V
- (11539)210 648 A
- 1152(*)S
- (half)168 1236 A
- 1446(of)S
- (square)252 1572 A
- (wave).)252 1866 A
- (The)126 2202 A
- (counter)294 2370 A
- (normally)336 2706 A
- (has)126 3084 A
- 3252(a)S
- (value)210 3336 A
- (between)294 3588 A
- 3924(0)S
- 2250 V
- (11540)210 648 A
- 1152(*)S
- (and)126 1236 A
- (TIMER_COUNT,)504 1404 A
- (but)126 1950 A
- (before)252 2118 A
- (the)126 2412 A
- (clock)210 2580 A
- (task)168 2832 A
- (has)126 3042 A
- (been)168 3210 A
- (initialized,)504 3420 A
- 2340 V
- (11541)210 648 A
- 1152(*)S
- (its)126 1236 A
- (maximum)294 1404 A
- (value)210 1740 A
- 1992(is)S
- (65535,)252 2118 A
- 2412(as)S
- (set)126 2538 A
- 2706(by)S
- (the)126 2832 A
- (BIOS.)210 3000 A
- 2430 V
- (11542)210 648 A
- 1152(*/)S
- 2520 V
- (11543)210 648 A
- (out_byte(TIMER_MODE,)840 1110 A
- (LATCH_COUNT);)546 1992 A
- 2706(/*)S
- (make)168 2832 A
- (chip)168 3042 A
- (copy)168 3252 A
- (count)210 3462 A
- 3714(to)S
- (latch)210 3840 A
- 4092(*/)S
- 2610 V
- (11544)210 648 A
- (count)210 1110 A
- 1362(=)S
- (in_byte(TIMER0);)672 1446 A
- 2370(/*)S
- (countdown)378 2496 A
- (continues)378 2916 A
- (during)252 3336 A
- (2-step)252 3630 A
- (read)168 3924 A
- 4134(*/)S
- 2700 V
- (11545)210 648 A
- (count)210 1110 A
- 1362(|=)S
- (in_byte(TIMER0))630 1488 A
- 2160(<<)S
- 2286(8;)S
- 2790 V
- (11546)210 648 A
- 2880 V
- (11547)210 648 A
- 1110(/*)S
- (Add)126 1236 A
- (difference)420 1404 A
- (between)294 1866 A
- (previous)336 2202 A
- (and)126 2580 A
- (new)126 2748 A
- (count)210 2916 A
- (unless)252 3168 A
- (the)126 3462 A
- (counter)294 3630 A
- (has)126 3966 A
- 2970 V
- (11548)210 648 A
- 1152(*)S
- (increased)378 1236 A
- ((restarted)420 1656 A
- (its)126 2118 A
- (cycle).)294 2286 A
- 2664(We)S
- (may)126 2790 A
- (lose)168 2958 A
- 3168(a)S
- (tick)168 3252 A
- (now)126 3462 A
- (and)126 3630 A
- (then,)210 3798 A
- (but)126 4050 A
- 3060 V
- (11549)210 648 A
- 1152(*)S
- (microsecond)462 1236 A
- (precision)378 1740 A
- 2160(is)S
- (not)126 2286 A
- (needed.)294 2454 A
- 3150 V
- (11550)210 648 A
- 1152(*/)S
- 3240 V
- (11551)210 648 A
- (msp->accum_count)672 1110 A
- 1824(+=)S
- (count)210 1950 A
- 2202(<=)S
- (msp->prev_count)630 2328 A
- 3000(?)S
- ((msp->prev_count)672 3084 A
- 3798(-)S
- (count))252 3882 A
- 4176(:)S
- 4260(1;)S
- 3330 V
- (11552)210 648 A
- (msp->prev_count)630 1110 A
- 1782(=)S
- (count;)252 1866 A
- 3420 V
- (11553)210 648 A
- 3510 V
- (11554)210 648 A
- (return)252 1110 A
- (msp->accum_count)672 1404 A
- 2118(/)S
- ((TIMER_FREQ)462 2202 A
- 2706(/)S
- (1000);)252 2790 A
- 3600 V
- (11555)210 648 A
- 1026(})S
- 4140 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4230 V
- (src/kernel/tty.h)672 2034 A
- 4320 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4500 V
- (11600)210 648 A
- 1026(/*)S
- (tty.h)210 1362 A
- 1614(-)S
- (Terminals)378 1698 A
- 2370(*/)S
- 4590 V
- (11601)210 648 A
- 4680 V
- (11602)210 648 A
- (#define)294 1026 A
- (TTY_IN_BYTES)504 1362 A
- (256)126 2076 A
- 2370(/*)S
- (tty)126 2496 A
- (input)210 2664 A
- (queue)210 2916 A
- (size)168 3168 A
- 3378(*/)S
- 4770 V
- (11603)210 648 A
- (#define)294 1026 A
- (TAB_SIZE)336 1362 A
- 2160(8)S
- 2370(/*)S
- (distance)336 2496 A
- (between)294 2874 A
- (tab)126 3210 A
- (stops)210 3378 A
- 3630(*/)S
- 4860 V
- (11604)210 648 A
- (#define)294 1026 A
- (TAB_MASK)336 1362 A
- 2160(7)S
- 2370(/*)S
- (mask)168 2496 A
- 2706(to)S
- (compute)294 2832 A
- 3168(a)S
- (tab)126 3252 A
- (stop)168 3420 A
- (position)336 3630 A
- 4008(*/)S
- 4950 V
- (11605)210 648 A
- 5040 V
- (11606)210 648 A
- (#define)294 1026 A
- (ESC)126 1362 A
- ('\33')210 2034 A
- 2370(/*)S
- (escape)252 2496 A
- 2790(*/)S
- 5130 V
- (11607)210 648 A
- 5220 V
- (11608)210 648 A
- (#define)294 1026 A
- (O_NOCTTY)336 1362 A
- (00400)210 1992 A
- 2370(/*)S
- (from)168 2496 A
- (<fcntl.h>,)420 2706 A
- 3168(or)S
- 3294(cc)S
- (will)168 3420 A
- (choke)210 3630 A
- 3882(*/)S
- 5310 V
- (11609)210 648 A
- (#define)294 1026 A
- (O_NONBLOCK)420 1362 A
- (04000)210 1992 A
- 5400 V
- (11610)210 648 A
- 5490 V
- (11611)210 648 A
- (typedef)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- ((*devfun_t),)504 2076 A
- ((struct)294 2622 A
- (tty)126 2958 A
- (*tp))168 3126 A
- 3336();)S
- 5580 V
- (11612)210 648 A
- (typedef)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- ((*devfunarg_t),)630 2076 A
- ((struct)294 2748 A
- (tty)126 3084 A
- (*tp,)168 3252 A
- (int)126 3462 A
- 3630(c))S
- 3756();)S
- 5670 V
- (11613)210 648 A
- 5760 V
- (11614)210 648 A
- (typedef)294 1026 A
- (struct)252 1362 A
- (tty)126 1656 A
- 1824({)S
- 5850 V
- (11615)210 648 A
- (int)126 1110 A
- (tty_events;)462 1278 A
- 2370(/*)S
- (set)126 2496 A
- (when)168 2664 A
- (TTY)126 2874 A
- (should)252 3042 A
- (inspect)294 3336 A
- (this)168 3672 A
- (line)168 3882 A
- 4092(*/)S
- 5940 V
- (11616)210 648 A
- 6030 V
- (11617)210 648 A
- 1110(/*)S
- (Input)210 1236 A
- (queue.)252 1488 A
- (Typed)210 1824 A
- (characters)420 2076 A
- (are)126 2538 A
- (stored)252 2706 A
- (here)168 3000 A
- (until)210 3210 A
- (read)168 3462 A
- 3672(by)S
- 3798(a)S
- (program.)336 3882 A
- 4260(*/)S
- 6120 V
- (11618)210 648 A
- (u16_t)210 1110 A
- (*tty_inhead;)504 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (place)210 2958 A
- (where)210 3210 A
- (next)168 3462 A
- (char)168 3672 A
- (goes)168 3882 A
- 4092(*/)S
- 6210 V
- (11619)210 648 A
- (u16_t)210 1110 A
- (*tty_intail;)504 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (next)168 2958 A
- (char)168 3168 A
- 3378(to)S
- 3504(be)S
- (given)210 3630 A
- 3882(to)S
- (prog)168 4008 A
- 4218(*/)S
- 8418 V
- EP
- %%Page: 154 154
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (154)180 648 A
- 11 R
- 2086(File:)S
- (src/kernel/tty.h)670 2319 A
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11620)210 648 A
- (int)126 1110 A
- (tty_incount;)504 1278 A
- 2370(/*)S
- 2496(#)S
- (chars)210 2580 A
- 2832(in)S
- (the)126 2958 A
- (input)210 3126 A
- (queue)210 3378 A
- 3630(*/)S
- 990 V
- (11621)210 648 A
- (int)126 1110 A
- (tty_eotct;)420 1278 A
- 2370(/*)S
- (number)252 2496 A
- 2790(of)S
- ("line)210 2916 A
- (breaks")294 3168 A
- 3504(in)S
- (input)210 3630 A
- (queue)210 3882 A
- 4134(*/)S
- 1080 V
- (11622)210 648 A
- (devfun_t)336 1110 A
- (tty_devread;)504 1488 A
- 2370(/*)S
- (routine)294 2496 A
- 2832(to)S
- (read)168 2958 A
- (from)168 3168 A
- (low)126 3378 A
- (level)210 3546 A
- (buffers)294 3798 A
- 4134(*/)S
- 1170 V
- (11623)210 648 A
- (devfun_t)336 1110 A
- (tty_icancel;)504 1488 A
- 2370(/*)S
- (cancel)252 2496 A
- (any)126 2790 A
- (device)252 2958 A
- (input)210 3252 A
- 3504(*/)S
- 1260 V
- (11624)210 648 A
- (int)126 1110 A
- (tty_min;)336 1278 A
- 2370(/*)S
- (minimum)294 2496 A
- (requested)378 2832 A
- (#chars)252 3252 A
- 3546(in)S
- (input)210 3672 A
- (queue)210 3924 A
- 4176(*/)S
- 1350 V
- (11625)210 648 A
- (clock_t)294 1110 A
- (tty_time;)378 1446 A
- 2370(/*)S
- (time)168 2496 A
- (when)168 2706 A
- (the)126 2916 A
- (input)210 3084 A
- 3336(is)S
- (available)378 3462 A
- 3882(*/)S
- 1440 V
- (11626)210 648 A
- (struct)252 1110 A
- (tty)126 1404 A
- (*tty_timenext;)588 1572 A
- 2370(/*)S
- (for)126 2496 A
- 2664(a)S
- (list)168 2748 A
- 2958(of)S
- (ttys)168 3084 A
- (with)168 3294 A
- (active)252 3504 A
- (timers)252 3798 A
- 4092(*/)S
- 1530 V
- (11627)210 648 A
- 1620 V
- (11628)210 648 A
- 1110(/*)S
- (Output)252 1236 A
- (section.)336 1530 A
- 1908(*/)S
- 1710 V
- (11629)210 648 A
- (devfun_t)336 1110 A
- (tty_devwrite;)546 1488 A
- 2370(/*)S
- (routine)294 2496 A
- 2832(to)S
- (start)210 2958 A
- (actual)252 3210 A
- (device)252 3504 A
- (output)252 3798 A
- 4092(*/)S
- 1800 V
- (11630)210 648 A
- (devfunarg_t)462 1110 A
- (tty_echo;)378 1614 A
- 2370(/*)S
- (routine)294 2496 A
- 2832(to)S
- (echo)168 2958 A
- (characters)420 3168 A
- (input)210 3630 A
- 3882(*/)S
- 1890 V
- (11631)210 648 A
- (devfun_t)336 1110 A
- (tty_ocancel;)504 1488 A
- 2370(/*)S
- (cancel)252 2496 A
- (any)126 2790 A
- (ongoing)294 2958 A
- (device)252 3294 A
- (output)252 3588 A
- 3882(*/)S
- 1980 V
- (11632)210 648 A
- (devfun_t)336 1110 A
- (tty_break;)420 1488 A
- 2370(/*)S
- (let)126 2496 A
- (the)126 2664 A
- (device)252 2832 A
- (send)168 3126 A
- 3336(a)S
- (break)210 3420 A
- 3672(*/)S
- 2070 V
- (11633)210 648 A
- 2160 V
- (11634)210 648 A
- 1110(/*)S
- (Terminal)336 1236 A
- (parameters)420 1614 A
- (and)126 2076 A
- (status.)294 2244 A
- 2580(*/)S
- 2250 V
- (11635)210 648 A
- (int)126 1110 A
- (tty_position;)546 1278 A
- 2370(/*)S
- (current)294 2496 A
- (position)336 2832 A
- 3210(on)S
- (the)126 3336 A
- (screen)252 3504 A
- (for)126 3798 A
- (echoing)294 3966 A
- 4302(*/)S
- 2340 V
- (11636)210 648 A
- (char)168 1110 A
- (tty_reprint;)504 1320 A
- 2370(/*)S
- 2496(1)S
- (when)168 2580 A
- (echoed)252 2790 A
- (input)210 3084 A
- (messed)252 3336 A
- (up,)126 3630 A
- (else)168 3798 A
- 4008(0)S
- 4092(*/)S
- 2430 V
- (11637)210 648 A
- (char)168 1110 A
- (tty_escaped;)504 1320 A
- 2370(/*)S
- 2496(1)S
- (when)168 2580 A
- (LNEXT)210 2790 A
- ((303V))168 3042 A
- (just)168 3252 A
- (seen,)210 3462 A
- (else)168 3714 A
- 3924(0)S
- 4008(*/)S
- 2520 V
- (11638)210 648 A
- (char)168 1110 A
- (tty_inhibited;)588 1320 A
- 2370(/*)S
- 2496(1)S
- (when)168 2580 A
- (STOP)168 2790 A
- ((303S))168 3000 A
- (just)168 3210 A
- (seen)168 3420 A
- ((stops)252 3630 A
- (output))294 3924 A
- 4260(*/)S
- 2610 V
- (11639)210 648 A
- (char)168 1110 A
- (tty_pgrp;)378 1320 A
- 2370(/*)S
- (slot)168 2496 A
- (number)252 2706 A
- 3000(of)S
- (controlling)462 3126 A
- (process)294 3630 A
- 3966(*/)S
- 2700 V
- (11640)210 648 A
- (char)168 1110 A
- (tty_openct;)462 1320 A
- 2370(/*)S
- (count)210 2496 A
- 2748(of)S
- (number)252 2874 A
- 3168(of)S
- (opens)210 3294 A
- 3546(of)S
- (this)168 3672 A
- (tty)126 3882 A
- 4050(*/)S
- 2790 V
- (11641)210 648 A
- 2880 V
- (11642)210 648 A
- 1110(/*)S
- (Information)462 1236 A
- (about)210 1740 A
- (incomplete)420 1992 A
- (I/O)126 2454 A
- (requests)336 2622 A
- 3000(is)S
- (stored)252 3126 A
- (here.)210 3420 A
- 3672(*/)S
- 2970 V
- (11643)210 648 A
- (char)168 1110 A
- (tty_inrepcode;)588 1320 A
- 2370(/*)S
- (reply)210 2496 A
- (code,)210 2748 A
- (TASK_REPLY)420 3000 A
- 3462(or)S
- (REVIVE)252 3588 A
- 3882(*/)S
- 3060 V
- (11644)210 648 A
- (char)168 1110 A
- (tty_incaller;)546 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (made)168 3042 A
- (the)126 3252 A
- (call)168 3420 A
- ((usually)336 3630 A
- (FS))126 4008 A
- 4176(*/)S
- 3150 V
- (11645)210 648 A
- (char)168 1110 A
- (tty_inproc;)462 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (wants)210 3042 A
- 3294(to)S
- (read)168 3420 A
- (from)168 3630 A
- (tty)126 3840 A
- 4008(*/)S
- 3240 V
- (11646)210 648 A
- (vir_bytes)378 1110 A
- (tty_in_vir;)462 1530 A
- 2370(/*)S
- (virtual)294 2496 A
- (address)294 2832 A
- (where)210 3168 A
- (data)168 3420 A
- 3630(is)S
- 3756(to)S
- 3882(go)S
- 4008(*/)S
- 3330 V
- (11647)210 648 A
- (int)126 1110 A
- (tty_inleft;)462 1278 A
- 2370(/*)S
- (how)126 2496 A
- (many)168 2664 A
- (chars)210 2874 A
- (are)126 3126 A
- (still)210 3294 A
- (needed)252 3546 A
- 3840(*/)S
- 3420 V
- (11648)210 648 A
- (int)126 1110 A
- (tty_incum;)420 1278 A
- 2370(/*)S
- 2496(#)S
- (chars)210 2580 A
- (input)210 2832 A
- 3084(so)S
- (far)126 3210 A
- 3378(*/)S
- 3510 V
- (11649)210 648 A
- (char)168 1110 A
- (tty_outrepcode;)630 1320 A
- 2370(/*)S
- (reply)210 2496 A
- (code,)210 2748 A
- (TASK_REPLY)420 3000 A
- 3462(or)S
- (REVIVE)252 3588 A
- 3882(*/)S
- 3600 V
- (11650)210 648 A
- (char)168 1110 A
- (tty_outcaller;)588 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (made)168 3042 A
- (the)126 3252 A
- (call)168 3420 A
- ((usually)336 3630 A
- (FS))126 4008 A
- 4176(*/)S
- 3690 V
- (11651)210 648 A
- (char)168 1110 A
- (tty_outproc;)504 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (wants)210 3042 A
- 3294(to)S
- (write)210 3420 A
- 3672(to)S
- (tty)126 3798 A
- 3966(*/)S
- 3780 V
- (11652)210 648 A
- (vir_bytes)378 1110 A
- (tty_out_vir;)504 1530 A
- 2370(/*)S
- (virtual)294 2496 A
- (address)294 2832 A
- (where)210 3168 A
- (data)168 3420 A
- (comes)210 3630 A
- (from)168 3882 A
- 4092(*/)S
- 3870 V
- (11653)210 648 A
- (int)126 1110 A
- (tty_outleft;)504 1278 A
- 2370(/*)S
- 2496(#)S
- (chars)210 2580 A
- (yet)126 2832 A
- 3000(to)S
- 3126(be)S
- (output)252 3252 A
- 3546(*/)S
- 3960 V
- (11654)210 648 A
- (int)126 1110 A
- (tty_outcum;)462 1278 A
- 2370(/*)S
- 2496(#)S
- (chars)210 2580 A
- (output)252 2832 A
- 3126(so)S
- (far)126 3252 A
- 3420(*/)S
- 4050 V
- (11655)210 648 A
- (char)168 1110 A
- (tty_iocaller;)546 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (made)168 3042 A
- (the)126 3252 A
- (call)168 3420 A
- ((usually)336 3630 A
- (FS))126 4008 A
- 4176(*/)S
- 4140 V
- (11656)210 648 A
- (char)168 1110 A
- (tty_ioproc;)462 1320 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (wants)210 3042 A
- 3294(to)S
- 3420(do)S
- 3546(an)S
- (ioctl)210 3672 A
- 3924(*/)S
- 4230 V
- (11657)210 648 A
- (int)126 1110 A
- (tty_ioreq;)420 1278 A
- 2370(/*)S
- (ioctl)210 2496 A
- (request)294 2748 A
- (code)168 3084 A
- 3294(*/)S
- 4320 V
- (11658)210 648 A
- (vir_bytes)378 1110 A
- (tty_iovir;)420 1530 A
- 2370(/*)S
- (virtual)294 2496 A
- (address)294 2832 A
- 3168(of)S
- (ioctl)210 3294 A
- (buffer)252 3546 A
- 3840(*/)S
- 4410 V
- (11659)210 648 A
- 4500 V
- (11660)210 648 A
- 1110(/*)S
- (Miscellaneous.)588 1236 A
- 1866(*/)S
- 4590 V
- (11661)210 648 A
- (devfun_t)336 1110 A
- (tty_ioctl;)420 1488 A
- 2370(/*)S
- (set)126 2496 A
- (line)168 2664 A
- (speed,)252 2874 A
- (etc.)168 3168 A
- 3378(at)S
- (the)126 3504 A
- (device)252 3672 A
- (level)210 3966 A
- 4218(*/)S
- 4680 V
- (11662)210 648 A
- (devfun_t)336 1110 A
- (tty_close;)420 1488 A
- 2370(/*)S
- (tell)168 2496 A
- (the)126 2706 A
- (device)252 2874 A
- (that)168 3168 A
- (the)126 3378 A
- (tty)126 3546 A
- 3714(is)S
- (closed)252 3840 A
- 4134(*/)S
- 4770 V
- (11663)210 648 A
- (void)168 1110 A
- (*tty_priv;)420 1320 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (per)126 2958 A
- (device)252 3126 A
- (private)294 3420 A
- (data)168 3756 A
- 3966(*/)S
- 4860 V
- (11664)210 648 A
- (struct)252 1110 A
- (termios)294 1404 A
- (tty_termios;)504 1740 A
- 2370(/*)S
- (terminal)336 2496 A
- (attributes)420 2874 A
- 3336(*/)S
- 4950 V
- (11665)210 648 A
- (struct)252 1110 A
- (winsize)294 1404 A
- (tty_winsize;)504 1740 A
- 2370(/*)S
- (window)252 2496 A
- (size)168 2790 A
- ((#lines)294 3000 A
- (and)126 3336 A
- (#columns))378 3504 A
- 3924(*/)S
- 5040 V
- (11666)210 648 A
- 5130 V
- (11667)210 648 A
- (u16_t)210 1110 A
- (tty_inbuf[TTY_IN_BYTES];/*)1092 1362 A
- (tty)126 2496 A
- (input)210 2664 A
- (buffer)252 2916 A
- 3210(*/)S
- 5220 V
- (11668)210 648 A
- 1026(})S
- (tty_t;)252 1110 A
- 5310 V
- (11669)210 648 A
- 5400 V
- (11670)210 648 A
- (EXTERN)252 1026 A
- (tty_t)210 1320 A
- (tty_table[NR_CONS+NR_RS_LINES+NR_PTYS];)1638 1572 A
- 5490 V
- (11671)210 648 A
- 5580 V
- (11672)210 648 A
- 1026(/*)S
- (Values)252 1152 A
- (for)126 1446 A
- (the)126 1614 A
- (fields.)294 1782 A
- 2118(*/)S
- 5670 V
- (11673)210 648 A
- (#define)294 1026 A
- (NOT_ESCAPED)462 1362 A
- 2160(0)S
- 2370(/*)S
- (previous)336 2496 A
- (character)378 2874 A
- 3294(is)S
- (not)126 3420 A
- (LNEXT)210 3588 A
- ((303V))168 3840 A
- 4050(*/)S
- 5760 V
- (11674)210 648 A
- (#define)294 1026 A
- (ESCAPED)294 1362 A
- 2160(1)S
- 2370(/*)S
- (previous)336 2496 A
- (character)378 2874 A
- (was)126 3294 A
- (LNEXT)210 3462 A
- ((303V))168 3714 A
- 3924(*/)S
- 5850 V
- (11675)210 648 A
- (#define)294 1026 A
- (RUNNING)294 1362 A
- 2160(0)S
- 2370(/*)S
- 2496(no)S
- (STOP)168 2622 A
- ((303S))168 2832 A
- (has)126 3042 A
- (been)168 3210 A
- (typed)210 3420 A
- 3672(to)S
- (stop)168 3798 A
- (output)252 4008 A
- 4302(*/)S
- 5940 V
- (11676)210 648 A
- (#define)294 1026 A
- (STOPPED)294 1362 A
- 2160(1)S
- 2370(/*)S
- (STOP)168 2496 A
- ((303S))168 2706 A
- (has)126 2916 A
- (been)168 3084 A
- (typed)210 3294 A
- 3546(to)S
- (stop)168 3672 A
- (output)252 3882 A
- 4176(*/)S
- 6030 V
- (11677)210 648 A
- 6120 V
- (11678)210 648 A
- 1026(/*)S
- (Fields)252 1152 A
- (and)126 1446 A
- (flags)210 1614 A
- 1866(on)S
- (characters)420 1992 A
- 2454(in)S
- (the)126 2580 A
- (input)210 2748 A
- (queue.)252 3000 A
- 3294(*/)S
- 6210 V
- (11679)210 648 A
- (#define)294 1026 A
- (IN_CHAR)294 1362 A
- (0x00FF)252 1950 A
- 2370(/*)S
- (low)126 2496 A
- 2664(8)S
- (bits)168 2748 A
- (are)126 2958 A
- (the)126 3126 A
- (character)378 3294 A
- (itself)252 3714 A
- 4008(*/)S
- 8418 V
- EP
- %%Page: 155 155
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2086(File:)S
- (src/kernel/tty.h)670 2319 A
- 12 B
- (155)180 4248 A
- 900 V
- 7 LST
- (11680)210 648 A
- (#define)294 1026 A
- (IN_LEN)252 1362 A
- (0x0F00)252 1950 A
- 2370(/*)S
- (length)252 2496 A
- 2790(of)S
- (char)168 2916 A
- 3126(if)S
- 3252(it)S
- (has)126 3378 A
- (been)168 3546 A
- (echoed)252 3756 A
- 4050(*/)S
- 990 V
- (11681)210 648 A
- (#define)294 1026 A
- (IN_LSHIFT)378 1362 A
- 2160(8)S
- 2370(/*)S
- (length)252 2496 A
- 2790(=)S
- 2874((c)S
- 3000(&)S
- (IN_LEN))294 3084 A
- 3420(>>)S
- (IN_LSHIFT)378 3546 A
- 3966(*/)S
- 1080 V
- (11682)210 648 A
- (#define)294 1026 A
- (IN_EOT)252 1362 A
- (0x1000)252 1950 A
- 2370(/*)S
- (char)168 2496 A
- 2706(is)S
- 2832(a)S
- (line)168 2916 A
- (break)210 3126 A
- ((303D,)168 3378 A
- (LF))126 3588 A
- 3756(*/)S
- 1170 V
- (11683)210 648 A
- (#define)294 1026 A
- (IN_EOF)252 1362 A
- (0x2000)252 1950 A
- 2370(/*)S
- (char)168 2496 A
- 2706(is)S
- (EOF)126 2832 A
- ((303D),)210 3000 A
- 3252(do)S
- (not)126 3378 A
- (return)252 3546 A
- 3840(to)S
- (user)168 3966 A
- 4176(*/)S
- 1260 V
- (11684)210 648 A
- (#define)294 1026 A
- (IN_ESC)252 1362 A
- (0x4000)252 1950 A
- 2370(/*)S
- (escaped)294 2496 A
- 2832(by)S
- (LNEXT)210 2958 A
- ((303V),)210 3210 A
- 3462(no)S
- (interpretation)588 3588 A
- 4218(*/)S
- 1350 V
- (11685)210 648 A
- 1440 V
- (11686)210 648 A
- 1026(/*)S
- (Times)210 1152 A
- (and)126 1404 A
- (timeouts.)378 1572 A
- 1992(*/)S
- 1530 V
- (11687)210 648 A
- (#define)294 1026 A
- (TIME_NEVER)420 1362 A
- (((clock_t))420 2034 A
- 2496(-1)S
- 2622(<)S
- 2706(0)S
- 2790(?)S
- ((clock_t))378 2874 A
- (LONG_MAX)336 3294 A
- 3672(:)S
- ((clock_t))378 3756 A
- (-1))126 4176 A
- 1620 V
- (11688)210 648 A
- (#define)294 1026 A
- (force_timeout())630 1362 A
- (((void))294 2034 A
- ((tty_timeout)504 2370 A
- 2916(=)S
- (0)))126 3000 A
- 1710 V
- (11689)210 648 A
- 1800 V
- (11690)210 648 A
- (EXTERN)252 1026 A
- (tty_t)210 1320 A
- (*tty_timelist;)588 1572 A
- 2370(/*)S
- (list)168 2496 A
- 2706(of)S
- (ttys)168 2832 A
- (with)168 3042 A
- (active)252 3252 A
- (timers)252 3546 A
- 3840(*/)S
- 1890 V
- (11691)210 648 A
- 1980 V
- (11692)210 648 A
- 1026(/*)S
- (Number)252 1152 A
- 1446(of)S
- (elements)336 1572 A
- (and)126 1950 A
- (limit)210 2118 A
- 2370(of)S
- 2496(a)S
- (buffer.)294 2580 A
- 2916(*/)S
- 2070 V
- (11693)210 648 A
- (#define)294 1026 A
- (buflen(buf))462 1362 A
- ((sizeof(buf))504 2034 A
- 2580(/)S
- (sizeof((buf)[0])))714 2664 A
- 2160 V
- (11694)210 648 A
- (#define)294 1026 A
- (bufend(buf))462 1362 A
- (((buf))252 2034 A
- 2328(+)S
- (buflen(buf)))504 2412 A
- 2790 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2880 V
- (src/kernel/tty.c)672 2034 A
- 2970 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 3150 V
- (11700)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (terminal)336 2118 A
- (driver,)294 2496 A
- (both)168 2832 A
- (for)126 3042 A
- (the)126 3210 A
- (IBM)126 3378 A
- (console)294 3546 A
- (and)126 3882 A
- (regular)294 4050 A
- 3240 V
- (11701)210 648 A
- 1068(*)S
- (ASCII)210 1152 A
- (terminals.)420 1404 A
- 1908(It)S
- (handles)294 2034 A
- (only)168 2370 A
- (the)126 2580 A
- (device-independent)756 2748 A
- (part)168 3546 A
- 3756(of)S
- 3882(a)S
- (TTY,)168 3966 A
- (the)126 4176 A
- 3330 V
- (11702)210 648 A
- 1068(*)S
- (device)252 1152 A
- (dependent)378 1446 A
- (parts)210 1866 A
- (are)126 2118 A
- 2286(in)S
- (console.c,)420 2412 A
- (rs232.c,)336 2874 A
- (etc.)168 3252 A
- (This)168 3504 A
- (file)168 3714 A
- (contains)336 3924 A
- 3420 V
- (11703)210 648 A
- 1068(*)S
- (two)126 1152 A
- (main)168 1320 A
- (entry)210 1530 A
- (points,)294 1782 A
- (tty_task())420 2118 A
- (and)126 2580 A
- (tty_wakeup(),)546 2748 A
- (and)126 3336 A
- (several)294 3504 A
- (minor)210 3840 A
- (entry)210 4092 A
- 3510 V
- (11704)210 648 A
- 1068(*)S
- (points)252 1152 A
- (for)126 1446 A
- (use)126 1614 A
- 1782(by)S
- (the)126 1908 A
- (device-dependent)672 2076 A
- (code.)210 2790 A
- 3600 V
- (11705)210 648 A
- 1068(*)S
- 3690 V
- (11706)210 648 A
- 1068(*)S
- (The)126 1152 A
- (device-independent)756 1320 A
- (part)168 2118 A
- (accepts)294 2328 A
- ("keyboard")420 2664 A
- (input)210 3126 A
- (from)168 3378 A
- (the)126 3588 A
- (device-)294 3756 A
- 3780 V
- (11707)210 648 A
- 1068(*)S
- (dependent)378 1152 A
- (part,)210 1572 A
- (performs)336 1824 A
- (input)210 2202 A
- (processing)420 2454 A
- ((special)336 2916 A
- (key)126 3294 A
- (interpretation),)672 3462 A
- 3870 V
- (11708)210 648 A
- 1068(*)S
- (and)126 1152 A
- (sends)210 1320 A
- (the)126 1572 A
- (input)210 1740 A
- 1992(to)S
- 2118(a)S
- (process)294 2202 A
- (reading)294 2538 A
- (from)168 2874 A
- (the)126 3084 A
- (TTY.)168 3252 A
- (Output)252 3504 A
- 3798(to)S
- 3924(a)S
- (TTY)126 4008 A
- 3960 V
- (11709)210 648 A
- 1068(*)S
- 1152(is)S
- (sent)168 1278 A
- 1488(to)S
- (the)126 1614 A
- (device-dependent)672 1782 A
- (code)168 2496 A
- (for)126 2706 A
- (output)252 2874 A
- (processing)420 3168 A
- (and)126 3630 A
- ("screen")336 3798 A
- 4050 V
- (11710)210 648 A
- 1068(*)S
- (display.)336 1152 A
- (Input)210 1572 A
- (processing)420 1824 A
- 2286(is)S
- (done)168 2412 A
- 2622(by)S
- (the)126 2748 A
- (device)252 2916 A
- 3210(by)S
- (calling)294 3336 A
- ('in_process')504 3672 A
- 4140 V
- (11711)210 648 A
- 1068(*)S
- 1152(on)S
- (the)126 1278 A
- (input)210 1446 A
- (characters,)462 1698 A
- (output)252 2202 A
- (processing)420 2496 A
- (may)126 2958 A
- 3126(be)S
- (done)168 3252 A
- 3462(by)S
- (the)126 3588 A
- (device)252 3756 A
- (itself)252 4050 A
- 4230 V
- (11712)210 648 A
- 1068(*)S
- 1152(or)S
- 1278(by)S
- (calling)294 1404 A
- ('out_process'.)588 1740 A
- (The)126 2412 A
- (TTY)126 2580 A
- (takes)210 2748 A
- (care)168 3000 A
- 3210(of)S
- (input)210 3336 A
- (queuing,)336 3588 A
- (the)126 3966 A
- 4320 V
- (11713)210 648 A
- 1068(*)S
- (device)252 1152 A
- (does)168 1446 A
- (the)126 1656 A
- (output)252 1824 A
- (queuing.)336 2118 A
- 2538(If)S
- 2664(a)S
- (device)252 2748 A
- (receives)336 3042 A
- 3420(an)S
- (external)336 3546 A
- (signal,)294 3924 A
- 4410 V
- (11714)210 648 A
- 1068(*)S
- (like)168 1152 A
- 1362(an)S
- (interrupt,)420 1488 A
- (then)168 1950 A
- 2160(it)S
- (causes)252 2286 A
- (tty_wakeup())504 2580 A
- 3126(to)S
- 3252(be)S
- (run)126 3378 A
- 3546(by)S
- (the)126 3672 A
- (CLOCK)210 3840 A
- (task)168 4092 A
- 4500 V
- (11715)210 648 A
- 1068(*)S
- (to,)126 1152 A
- (you)126 1320 A
- (guessed)294 1488 A
- (it,)126 1824 A
- (wake)168 1992 A
- 2202(up)S
- (the)126 2328 A
- (TTY)126 2496 A
- 2664(to)S
- (check)210 2790 A
- 3042(if)S
- (input)210 3168 A
- 3420(or)S
- (output)252 3546 A
- (can)126 3840 A
- 4590 V
- (11716)210 648 A
- 1068(*)S
- (continue.)378 1152 A
- 4680 V
- (11717)210 648 A
- 1068(*)S
- 4770 V
- (11718)210 648 A
- 1068(*)S
- (The)126 1152 A
- (valid)210 1320 A
- (messages)336 1572 A
- (and)126 1950 A
- (their)210 2118 A
- (parameters)420 2370 A
- (are:)168 2832 A
- 4860 V
- (11719)210 648 A
- 1068(*)S
- 4950 V
- (11720)210 648 A
- 1068(*)S
- (HARD_INT:)378 1236 A
- (output)252 1824 A
- (has)126 2118 A
- (been)168 2286 A
- (completed)378 2496 A
- 2916(or)S
- (input)210 3042 A
- (has)126 3294 A
- (arrived)294 3462 A
- 5040 V
- (11721)210 648 A
- 1068(*)S
- (DEV_READ:)378 1236 A
- 1824(a)S
- (process)294 1908 A
- (wants)210 2244 A
- 2496(to)S
- (read)168 2622 A
- (from)168 2832 A
- 3042(a)S
- (terminal)336 3126 A
- 5130 V
- (11722)210 648 A
- 1068(*)S
- (DEV_WRITE:)420 1236 A
- 1824(a)S
- (process)294 1908 A
- (wants)210 2244 A
- 2496(to)S
- (write)210 2622 A
- 2874(on)S
- 3000(a)S
- (terminal)336 3084 A
- 5220 V
- (11723)210 648 A
- 1068(*)S
- (DEV_IOCTL:)420 1236 A
- 1824(a)S
- (process)294 1908 A
- (wants)210 2244 A
- 2496(to)S
- (change)252 2622 A
- 2916(a)S
- (terminal's)420 3000 A
- (parameters)420 3462 A
- 5310 V
- (11724)210 648 A
- 1068(*)S
- (DEV_OPEN:)378 1236 A
- 1824(a)S
- (tty)126 1908 A
- (line)168 2076 A
- (has)126 2286 A
- (been)168 2454 A
- (opened)252 2664 A
- 5400 V
- (11725)210 648 A
- 1068(*)S
- (DEV_CLOSE:)420 1236 A
- 1824(a)S
- (tty)126 1908 A
- (line)168 2076 A
- (has)126 2286 A
- (been)168 2454 A
- (closed)252 2664 A
- 5490 V
- (11726)210 648 A
- 1068(*)S
- (CANCEL:)294 1236 A
- (terminate)378 1824 A
- 2244(a)S
- (previous)336 2328 A
- (incomplete)420 2706 A
- (system)252 3168 A
- (call)168 3462 A
- (immediately)462 3672 A
- 5580 V
- (11727)210 648 A
- 1068(*)S
- 5670 V
- (11728)210 648 A
- 1068(*)S
- (m_type)252 1278 A
- (TTY_LINE)336 1782 A
- (PROC_NR)294 2244 A
- (COUNT)210 2706 A
- (TTY_SPEK)336 3042 A
- (TTY_FLAGS)378 3462 A
- (ADDRESS)294 3924 A
- 5760 V
- (11729)210 648 A
- 1068(*)S
- (---------------------------------------------------------------------------)3150 1152 A
- 5850 V
- (11730)210 648 A
- 1068(*)S
- 1152(|)S
- (HARD_INT)336 1236 A
- 1740(|)S
- 2160(|)S
- 2580(|)S
- 3000(|)S
- 3420(|)S
- 3840(|)S
- 4260(|)S
- 5940 V
- (11731)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 6030 V
- (11732)210 648 A
- 1068(*)S
- 1152(|)S
- (DEV_READ)336 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- 2580(|)S
- (count)210 2706 A
- 3000(|)S
- (O_NONBLOCK|)462 3420 A
- (buf)126 3924 A
- (ptr)126 4092 A
- 4260(|)S
- 6120 V
- (11733)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 6210 V
- (11734)210 648 A
- 1068(*)S
- 1152(|)S
- (DEV_WRITE)378 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- 2580(|)S
- (count)210 2706 A
- 3000(|)S
- 3420(|)S
- 3840(|)S
- (buf)126 3924 A
- (ptr)126 4092 A
- 4260(|)S
- 8418 V
- EP
- %%Page: 156 156
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (156)180 648 A
- 11 R
- 2089(File:)S
- (src/kernel/tty.c)665 2322 A
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11735)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 990 V
- (11736)210 648 A
- 1068(*)S
- 1152(|)S
- (DEV_IOCTL)378 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- (|func)210 2580 A
- (code|erase)420 2832 A
- (etc|)168 3294 A
- (flags)210 3546 A
- 3840(|)S
- 4260(|)S
- 1080 V
- (11737)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 1170 V
- (11738)210 648 A
- 1068(*)S
- 1152(|)S
- (DEV_OPEN)336 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- 2580(|)S
- (O_NOCTTY|)378 2664 A
- 3420(|)S
- 3840(|)S
- 4260(|)S
- 1260 V
- (11739)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 1350 V
- (11740)210 648 A
- 1068(*)S
- 1152(|)S
- (DEV_CLOSE)378 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- 2580(|)S
- 3000(|)S
- 3420(|)S
- 3840(|)S
- 4260(|)S
- 1440 V
- (11741)210 648 A
- 1068(*)S
- (|-------------+---------+---------+---------+---------+---------+---------|)3150 1152 A
- 1530 V
- (11742)210 648 A
- 1068(*)S
- 1152(|)S
- (CANCEL)252 1236 A
- (|minor)252 1740 A
- (dev|)168 2034 A
- (proc)168 2244 A
- 2454(nr)S
- 2580(|)S
- 3000(|)S
- 3420(|)S
- 3840(|)S
- 4260(|)S
- 1620 V
- (11743)210 648 A
- 1068(*)S
- (---------------------------------------------------------------------------)3150 1152 A
- 1710 V
- (11744)210 648 A
- 1068(*/)S
- 1800 V
- (11745)210 648 A
- 1890 V
- (11746)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 1980 V
- (11747)210 648 A
- (#include)336 1026 A
- (<termios.h>)462 1404 A
- 2070 V
- (11748)210 648 A
- (#include)336 1026 A
- (<sys/ioctl.h>)546 1404 A
- 2160 V
- (11749)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 2250 V
- (11750)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 2340 V
- (11751)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 2430 V
- (11752)210 648 A
- (#include)336 1026 A
- (<minix/keymap.h>)672 1404 A
- 2520 V
- (11753)210 648 A
- (#include)336 1026 A
- ("tty.h")294 1404 A
- 2610 V
- (11754)210 648 A
- (#include)336 1026 A
- ("proc.h")336 1404 A
- 2700 V
- (11755)210 648 A
- 2790 V
- (11756)210 648 A
- 1026(/*)S
- (Address)294 1152 A
- 1488(of)S
- 1614(a)S
- (tty)126 1698 A
- (structure.)420 1866 A
- 2328(*/)S
- 2880 V
- (11757)210 648 A
- (#define)294 1026 A
- (tty_addr(line))588 1362 A
- ((&tty_table[line]))756 2034 A
- 2970 V
- (11758)210 648 A
- 3060 V
- (11759)210 648 A
- 1026(/*)S
- (First)210 1152 A
- (minor)210 1404 A
- (numbers)294 1656 A
- (for)126 1992 A
- (the)126 2160 A
- (various)294 2328 A
- (classes)294 2664 A
- 3000(of)S
- (TTY)126 3126 A
- (devices.)336 3294 A
- 3672(*/)S
- 3150 V
- (11760)210 648 A
- (#define)294 1026 A
- (CONS_MINOR)420 1362 A
- 2118(0)S
- 3240 V
- (11761)210 648 A
- (#define)294 1026 A
- (LOG_MINOR)378 1362 A
- 2076(15)S
- 3330 V
- (11762)210 648 A
- (#define)294 1026 A
- (RS232_MINOR)462 1362 A
- 2076(16)S
- 3420 V
- (11763)210 648 A
- (#define)294 1026 A
- (TTYPX_MINOR)462 1362 A
- (128)126 2034 A
- 3510 V
- (11764)210 648 A
- (#define)294 1026 A
- (PTYPX_MINOR)462 1362 A
- (192)126 2034 A
- 3600 V
- (11765)210 648 A
- 3690 V
- (11766)210 648 A
- 1026(/*)S
- (Macros)252 1152 A
- (for)126 1446 A
- (magic)210 1614 A
- (tty)126 1866 A
- (types.)252 2034 A
- 2328(*/)S
- 3780 V
- (11767)210 648 A
- (#define)294 1026 A
- (isconsole(tp))546 1362 A
- (((tp))210 2034 A
- 2286(<)S
- (tty_addr(NR_CONS)))756 2370 A
- 3870 V
- (11768)210 648 A
- 3960 V
- (11769)210 648 A
- 1026(/*)S
- (Macros)252 1152 A
- (for)126 1446 A
- (magic)210 1614 A
- (tty)126 1866 A
- (structure)378 2034 A
- (pointers.)378 2454 A
- 2874(*/)S
- 4050 V
- (11770)210 648 A
- (#define)294 1026 A
- (FIRST_TTY)378 1362 A
- (tty_addr(0))462 2034 A
- 4140 V
- (11771)210 648 A
- (#define)294 1026 A
- (END_TTY)294 1362 A
- (tty_addr(sizeof(tty_table))1092 2034 A
- 3168(/)S
- (sizeof(tty_table[0])))882 3252 A
- 4230 V
- (11772)210 648 A
- 4320 V
- (11773)210 648 A
- 1026(/*)S
- 1152(A)S
- (device)252 1236 A
- (exists)252 1530 A
- 1824(if)S
- 1950(at)S
- (least)210 2076 A
- (its)126 2328 A
- ('devread')378 2496 A
- (function)336 2916 A
- 3294(is)S
- (defined.)336 3420 A
- 3798(*/)S
- 4410 V
- (11774)210 648 A
- (#define)294 1026 A
- (tty_active(tp))588 1362 A
- (((tp)->tty_devread)756 2034 A
- 2832(!=)S
- (NULL))210 2958 A
- 4500 V
- (11775)210 648 A
- 4590 V
- (11776)210 648 A
- 1026(/*)S
- (RS232)210 1152 A
- (lines)210 1404 A
- 1656(or)S
- (pseudo)252 1782 A
- (terminals)378 2076 A
- (can)126 2496 A
- 2664(be)S
- (completely)420 2790 A
- (configured)420 3252 A
- (out.)168 3714 A
- 3924(*/)S
- 4680 V
- (11777)210 648 A
- (#if)126 1026 A
- (NR_RS_LINES)462 1194 A
- 1698(==)S
- 1824(0)S
- 4770 V
- (11778)210 648 A
- (#define)294 1026 A
- (rs_init(tp))462 1362 A
- (((void))294 2034 A
- 2370(0))S
- 4860 V
- (11779)210 648 A
- (#endif)252 1026 A
- 4950 V
- (11780)210 648 A
- (#if)126 1026 A
- (NR_PTYS)294 1194 A
- 1530(==)S
- 1656(0)S
- 5040 V
- (11781)210 648 A
- (#define)294 1026 A
- (pty_init(tp))504 1362 A
- (((void))294 2034 A
- 2370(0))S
- 5130 V
- (11782)210 648 A
- (#define)294 1026 A
- (do_pty(tp,)420 1362 A
- (mp))126 1824 A
- (((void))294 2034 A
- 2370(0))S
- 5220 V
- (11783)210 648 A
- (#endif)252 1026 A
- 5310 V
- (11784)210 648 A
- 5400 V
- (11785)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_cancel,)420 2076 A
- ((tty_t)252 2538 A
- (*tp,)168 2832 A
- (message)294 3042 A
- (*m_ptr))294 3378 A
- 4050();)S
- 5490 V
- (11786)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_ioctl,)378 2076 A
- ((tty_t)252 2496 A
- (*tp,)168 2790 A
- (message)294 3000 A
- (*m_ptr))294 3336 A
- 4050();)S
- 5580 V
- (11787)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_open,)336 2076 A
- ((tty_t)252 2454 A
- (*tp,)168 2748 A
- (message)294 2958 A
- (*m_ptr))294 3294 A
- 4050();)S
- 5670 V
- (11788)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_close,)378 2076 A
- ((tty_t)252 2496 A
- (*tp,)168 2790 A
- (message)294 3000 A
- (*m_ptr))294 3336 A
- 4050();)S
- 5760 V
- (11789)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_read,)336 2076 A
- ((tty_t)252 2454 A
- (*tp,)168 2748 A
- (message)294 2958 A
- (*m_ptr))294 3294 A
- 4050();)S
- 5850 V
- (11790)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (do_write,)378 2076 A
- ((tty_t)252 2496 A
- (*tp,)168 2790 A
- (message)294 3000 A
- (*m_ptr))294 3336 A
- 4050();)S
- 5940 V
- (11791)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (in_transfer,)504 2076 A
- ((tty_t)252 2622 A
- (*tp))168 2916 A
- 4050();)S
- 6030 V
- (11792)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (echo,)210 2034 A
- ((tty_t)252 2286 A
- (*tp,)168 2580 A
- (int)126 2790 A
- (ch))126 2958 A
- 4050();)S
- 6120 V
- (11793)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (rawecho,)336 2076 A
- ((tty_t)252 2454 A
- (*tp,)168 2748 A
- (int)126 2958 A
- (ch))126 3126 A
- 4050();)S
- 6210 V
- (11794)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (back_over,)420 2034 A
- ((tty_t)252 2496 A
- (*tp))168 2790 A
- 4050();)S
- 8418 V
- EP
- %%Page: 157 157
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2089(File:)S
- (src/kernel/tty.c)665 2322 A
- 12 B
- (157)180 4248 A
- 900 V
- 7 LST
- (11795)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (reprint,)336 2076 A
- ((tty_t)252 2454 A
- (*tp))168 2748 A
- 4050();)S
- 990 V
- (11796)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (dev_ioctl,)420 2076 A
- ((tty_t)252 2538 A
- (*tp))168 2832 A
- 4050();)S
- 1080 V
- (11797)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (setattr,)336 2076 A
- ((tty_t)252 2454 A
- (*tp))168 2748 A
- 4050();)S
- 1170 V
- (11798)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (tty_icancel,)504 2076 A
- ((tty_t)252 2622 A
- (*tp))168 2916 A
- 4050();)S
- 1260 V
- (11799)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (tty_init,)378 2076 A
- ((tty_t)252 2496 A
- (*tp))168 2790 A
- 4050();)S
- 1350 V
- (11800)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (settimer,)378 2076 A
- ((tty_t)252 2496 A
- (*tp,)168 2790 A
- (int)126 3000 A
- (on))126 3168 A
- 4050();)S
- 1440 V
- (11801)210 648 A
- 1530 V
- (11802)210 648 A
- 1026(/*)S
- (Default)294 1152 A
- (attributes.)462 1488 A
- 1992(*/)S
- 1620 V
- (11803)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (termios)294 1656 A
- (termios_defaults)672 1992 A
- 2706(=)S
- 2790({)S
- 1710 V
- (11804)210 648 A
- (TINPUT_DEF,)462 1110 A
- (TOUTPUT_DEF,)504 1614 A
- (TCTRL_DEF,)420 2160 A
- (TLOCAL_DEF,)462 2622 A
- (TSPEED_DEF,)462 3126 A
- (TSPEED_DEF,)462 3630 A
- 1800 V
- (11805)210 648 A
- 1110({)S
- 1890 V
- (11806)210 648 A
- (TEOF_DEF,)378 1362 A
- (TEOL_DEF,)378 1782 A
- (TERASE_DEF,)462 2202 A
- (TINTR_DEF,)420 2706 A
- (TKILL_DEF,)420 3168 A
- (TMIN_DEF,)378 3630 A
- 1980 V
- (11807)210 648 A
- (TQUIT_DEF,)420 1362 A
- (TTIME_DEF,)420 1824 A
- (TSUSP_DEF,)420 2286 A
- (TSTART_DEF,)462 2748 A
- (TSTOP_DEF,)420 3252 A
- 2070 V
- (11808)210 648 A
- (TREPRINT_DEF,)546 1362 A
- (TLNEXT_DEF,)462 1950 A
- (TDISCARD_DEF,)546 2454 A
- 2160 V
- (11809)210 648 A
- 1110(},)S
- 2250 V
- (11810)210 648 A
- 1026(};)S
- 2340 V
- (11811)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (winsize)294 1656 A
- (winsize_defaults;)714 1992 A
- 3042(/*)S
- 3168(=)S
- (all)126 3252 A
- (zeroes)252 3420 A
- 3714(*/)S
- 2430 V
- (11812)210 648 A
- 2520 V
- (11813)210 648 A
- 2610 V
- (11814)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2700 V
- (11815)210 648 A
- 1068(*)S
- (tty_task)336 2370 A
- 4260(*)S
- 2790 V
- (11816)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2880 V
- (11817)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (tty_task())420 1530 A
- 2970 V
- (11818)210 648 A
- 1026({)S
- 3060 V
- (11819)210 648 A
- 1026(/*)S
- (Main)168 1152 A
- (routine)294 1362 A
- 1698(of)S
- (the)126 1824 A
- (terminal)336 1992 A
- (task.)210 2370 A
- 2622(*/)S
- 3150 V
- (11820)210 648 A
- 3240 V
- (11821)210 648 A
- (message)294 1110 A
- (tty_mess;)378 1446 A
- 2370(/*)S
- (buffer)252 2496 A
- (for)126 2790 A
- (all)126 2958 A
- (incoming)336 3126 A
- (messages)336 3504 A
- 3882(*/)S
- 3330 V
- (11822)210 648 A
- (register)336 1110 A
- (tty_t)210 1488 A
- (*tp;)168 1740 A
- 3420 V
- (11823)210 648 A
- (unsigned)336 1110 A
- (line;)210 1488 A
- 3510 V
- (11824)210 648 A
- 3600 V
- (11825)210 648 A
- 1110(/*)S
- (Initialize)420 1236 A
- (the)126 1698 A
- (terminal)336 1866 A
- (lines.)252 2244 A
- 2538(*/)S
- 3690 V
- (11826)210 648 A
- (for)126 1110 A
- ((tp)126 1278 A
- 1446(=)S
- (FIRST_TTY;)420 1530 A
- 1992(tp)S
- 2118(<)S
- (END_TTY;)336 2202 A
- (tp++))210 2580 A
- (tty_init(tp);)546 2832 A
- 3780 V
- (11827)210 648 A
- 3870 V
- (11828)210 648 A
- 1110(/*)S
- (Display)294 1236 A
- (the)126 1572 A
- (Minix)210 1740 A
- (startup)294 1992 A
- (banner.)294 2328 A
- 2664(*/)S
- 3960 V
- (11829)210 648 A
- (printf("Minix)546 1110 A
- (%s.%s)210 1698 A
- (Copyright)378 1992 A
- (1997)168 2412 A
- (Prentice-Hall,)588 2622 A
- (Inc.\n\n",)420 3252 A
- 4050 V
- (11830)210 648 A
- (OS_RELEASE,)462 3042 A
- (OS_VERSION);)504 3546 A
- 4140 V
- (11831)210 648 A
- (printf("Executing)714 1110 A
- 1866(in)S
- (32-bit)252 1992 A
- (protected)378 2286 A
- (mode\n\n");)462 2706 A
- 4230 V
- (11832)210 648 A
- 4320 V
- (11833)210 648 A
- (while)210 1110 A
- ((TRUE))252 1362 A
- 1656({)S
- 4410 V
- (11834)210 648 A
- 1362(/*)S
- (Handle)252 1488 A
- (any)126 1782 A
- (events)252 1950 A
- 2244(on)S
- (any)126 2370 A
- 2538(of)S
- (the)126 2664 A
- (ttys.)210 2832 A
- 3084(*/)S
- 4500 V
- (11835)210 648 A
- (for)126 1362 A
- ((tp)126 1530 A
- 1698(=)S
- (FIRST_TTY;)420 1782 A
- 2244(tp)S
- 2370(<)S
- (END_TTY;)336 2454 A
- (tp++))210 2832 A
- 3084({)S
- 4590 V
- (11836)210 648 A
- 1698(if)S
- ((tp->tty_events))672 1824 A
- (handle_events(tp);)756 2538 A
- 4680 V
- (11837)210 648 A
- 1362(})S
- 4770 V
- (11838)210 648 A
- 4860 V
- (11839)210 648 A
- (receive(ANY,)504 1362 A
- (&tty_mess);)462 1908 A
- 4950 V
- (11840)210 648 A
- 5040 V
- (11841)210 648 A
- 1362(/*)S
- 1488(A)S
- (hardware)336 1572 A
- (interrupt)378 1950 A
- 2370(is)S
- 2496(an)S
- (invitation)420 2622 A
- 3084(to)S
- (check)210 3210 A
- (for)126 3462 A
- (events.)294 3630 A
- 3966(*/)S
- 5130 V
- (11842)210 648 A
- 1362(if)S
- ((tty_mess.m_type)672 1488 A
- 2202(==)S
- (HARD_INT))378 2328 A
- (continue;)378 2748 A
- 5220 V
- (11843)210 648 A
- 5310 V
- (11844)210 648 A
- 1362(/*)S
- (Check)210 1488 A
- (the)126 1740 A
- (minor)210 1908 A
- (device)252 2160 A
- (number.)294 2454 A
- 2790(*/)S
- 5400 V
- (11845)210 648 A
- (line)168 1362 A
- 1572(=)S
- (tty_mess.TTY_LINE;)756 1656 A
- 5490 V
- (11846)210 648 A
- 1362(if)S
- (((line)252 1488 A
- 1782(-)S
- (CONS_MINOR))462 1866 A
- 2370(<)S
- (NR_CONS))336 2454 A
- 2832({)S
- 5580 V
- (11847)210 648 A
- 1698(tp)S
- 1824(=)S
- (tty_addr(line)546 1908 A
- 2496(-)S
- (CONS_MINOR);)504 2580 A
- 5670 V
- (11848)210 648 A
- 1362(})S
- (else)168 1446 A
- 5760 V
- (11849)210 648 A
- 1362(if)S
- ((line)210 1488 A
- 1740(==)S
- (LOG_MINOR))420 1866 A
- 2328({)S
- 5850 V
- (11850)210 648 A
- 1698(tp)S
- 1824(=)S
- (tty_addr(0);)504 1908 A
- 5940 V
- (11851)210 648 A
- 1362(})S
- (else)168 1446 A
- 6030 V
- (11852)210 648 A
- 1362(if)S
- (((line)252 1488 A
- 1782(-)S
- (RS232_MINOR))504 1866 A
- 2412(<)S
- (NR_RS_LINES))504 2496 A
- 3042({)S
- 6120 V
- (11853)210 648 A
- 1698(tp)S
- 1824(=)S
- (tty_addr(line)546 1908 A
- 2496(-)S
- (RS232_MINOR)462 2580 A
- 3084(+)S
- (NR_CONS);)378 3168 A
- 6210 V
- (11854)210 648 A
- 1362(})S
- (else)168 1446 A
- 8418 V
- EP
- %%Page: 158 158
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (158)180 648 A
- 11 R
- 2089(File:)S
- (src/kernel/tty.c)665 2322 A
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11855)210 648 A
- 1362(if)S
- (((line)252 1488 A
- 1782(-)S
- (TTYPX_MINOR))504 1866 A
- 2412(<)S
- (NR_PTYS))336 2496 A
- 2874({)S
- 990 V
- (11856)210 648 A
- 1698(tp)S
- 1824(=)S
- (tty_addr(line)546 1908 A
- 2496(-)S
- (TTYPX_MINOR)462 2580 A
- 3084(+)S
- (NR_CONS)294 3168 A
- 3504(+)S
- (NR_RS_LINES);)546 3588 A
- 1080 V
- (11857)210 648 A
- 1362(})S
- (else)168 1446 A
- 1170 V
- (11858)210 648 A
- 1362(if)S
- (((line)252 1488 A
- 1782(-)S
- (PTYPX_MINOR))504 1866 A
- 2412(<)S
- (NR_PTYS))336 2496 A
- 2874({)S
- 1260 V
- (11859)210 648 A
- 1698(tp)S
- 1824(=)S
- (tty_addr(line)546 1908 A
- 2496(-)S
- (PTYPX_MINOR)462 2580 A
- 3084(+)S
- (NR_CONS)294 3168 A
- 3504(+)S
- (NR_RS_LINES);)546 3588 A
- 1350 V
- (11860)210 648 A
- (do_pty(tp,)420 1698 A
- (&tty_mess);)462 2160 A
- 1440 V
- (11861)210 648 A
- (continue;)378 1698 A
- 3042(/*)S
- (this)168 3168 A
- 3378(is)S
- 3504(a)S
- (pty,)168 3588 A
- (not)126 3798 A
- 3966(a)S
- (tty)126 4050 A
- 4218(*/)S
- 1530 V
- (11862)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 1620 V
- (11863)210 648 A
- 1698(tp)S
- 1824(=)S
- (NULL;)210 1908 A
- 1710 V
- (11864)210 648 A
- 1362(})S
- 1800 V
- (11865)210 648 A
- 1890 V
- (11866)210 648 A
- 1362(/*)S
- 1488(If)S
- (the)126 1614 A
- (device)252 1782 A
- (doesn't)294 2076 A
- (exist)210 2412 A
- 2664(or)S
- 2790(is)S
- (not)126 2916 A
- (configured)420 3084 A
- (return)252 3546 A
- (ENXIO.)252 3840 A
- 4134(*/)S
- 1980 V
- (11867)210 648 A
- 1362(if)S
- ((tp)126 1488 A
- 1656(==)S
- (NULL)168 1782 A
- 1992(||)S
- (!tty_active(tp)))672 2118 A
- 2832({)S
- 2070 V
- (11868)210 648 A
- (tty_reply(TASK_REPLY,)882 1698 A
- (tty_mess.m_source,)756 2622 A
- 2160 V
- (11869)210 648 A
- (tty_mess.PROC_NR,)714 3042 A
- (ENXIO);)294 3798 A
- 2250 V
- (11870)210 648 A
- (continue;)378 1698 A
- 2340 V
- (11871)210 648 A
- 1362(})S
- 2430 V
- (11872)210 648 A
- 2520 V
- (11873)210 648 A
- 1362(/*)S
- (Execute)294 1488 A
- (the)126 1824 A
- (requested)378 1992 A
- (function.)378 2412 A
- 2832(*/)S
- 2610 V
- (11874)210 648 A
- (switch)252 1362 A
- ((tty_mess.m_type))714 1656 A
- 2412({)S
- 2700 V
- (11875)210 648 A
- (case)168 1530 A
- (DEV_READ:)378 1740 A
- (do_read(tp,)462 2370 A
- (&tty_mess);)462 2874 A
- (break;)252 3714 A
- 2790 V
- (11876)210 648 A
- (case)168 1530 A
- (DEV_WRITE:)420 1740 A
- (do_write(tp,)504 2370 A
- (&tty_mess);)462 2916 A
- (break;)252 3714 A
- 2880 V
- (11877)210 648 A
- (case)168 1530 A
- (DEV_IOCTL:)420 1740 A
- (do_ioctl(tp,)504 2370 A
- (&tty_mess);)462 2916 A
- (break;)252 3714 A
- 2970 V
- (11878)210 648 A
- (case)168 1530 A
- (DEV_OPEN:)378 1740 A
- (do_open(tp,)462 2370 A
- (&tty_mess);)462 2874 A
- (break;)252 3714 A
- 3060 V
- (11879)210 648 A
- (case)168 1530 A
- (DEV_CLOSE:)420 1740 A
- (do_close(tp,)504 2370 A
- (&tty_mess);)462 2916 A
- (break;)252 3714 A
- 3150 V
- (11880)210 648 A
- (case)168 1530 A
- (CANCEL:)294 1740 A
- (do_cancel(tp,)546 2370 A
- (&tty_mess);)462 2958 A
- (break;)252 3714 A
- 3240 V
- (11881)210 648 A
- (default:)336 1530 A
- (tty_reply(TASK_REPLY,)882 2370 A
- (tty_mess.m_source,)756 3294 A
- 3330 V
- (11882)210 648 A
- (tty_mess.PROC_NR,)714 3042 A
- (EINVAL);)336 3798 A
- 3420 V
- (11883)210 648 A
- 1362(})S
- 3510 V
- (11884)210 648 A
- 1110(})S
- 3600 V
- (11885)210 648 A
- 1026(})S
- 3870 V
- (11888)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3960 V
- (11889)210 648 A
- 1068(*)S
- (do_read)294 2370 A
- 4260(*)S
- 4050 V
- (11890)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4140 V
- (11891)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_read(tp,)462 1572 A
- (m_ptr))252 2076 A
- 4230 V
- (11892)210 648 A
- (register)336 1026 A
- (tty_t)210 1404 A
- (*tp;)168 1656 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (tty)126 2958 A
- (struct)252 3126 A
- 3420(*/)S
- 4320 V
- (11893)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (message)294 2958 A
- (sent)168 3294 A
- 3504(to)S
- (the)126 3630 A
- (task)168 3798 A
- 4008(*/)S
- 4410 V
- (11894)210 648 A
- 1026({)S
- 4500 V
- (11895)210 648 A
- 1026(/*)S
- 1152(A)S
- (process)294 1236 A
- (wants)210 1572 A
- 1824(to)S
- (read)168 1950 A
- (from)168 2160 A
- 2370(a)S
- (terminal.)378 2454 A
- 2874(*/)S
- 4590 V
- (11896)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 4680 V
- (11897)210 648 A
- 4770 V
- (11898)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(if)S
- (there)210 1614 A
- 1866(is)S
- (already)294 1992 A
- 2328(a)S
- (process)294 2412 A
- (hanging)294 2748 A
- 3084(in)S
- 3210(a)S
- (read,)210 3294 A
- (check)210 3546 A
- 3798(if)S
- (the)126 3924 A
- 4860 V
- (11899)210 648 A
- 1152(*)S
- (parameters)420 1236 A
- (are)126 1698 A
- (correct,)336 1866 A
- 2244(do)S
- (I/O.)168 2370 A
- 4950 V
- (11900)210 648 A
- 1152(*/)S
- 5040 V
- (11901)210 648 A
- 1110(if)S
- ((tp->tty_inleft)630 1236 A
- 1908(>)S
- 1992(0))S
- 2118({)S
- 5130 V
- (11902)210 648 A
- 1362(r)S
- 1446(=)S
- (EIO;)168 1530 A
- 5220 V
- (11903)210 648 A
- 1110(})S
- (else)168 1194 A
- 5310 V
- (11904)210 648 A
- 1110(if)S
- ((m_ptr->COUNT)546 1236 A
- 1824(<=)S
- 1950(0))S
- 2076({)S
- 5400 V
- (11905)210 648 A
- 1362(r)S
- 1446(=)S
- (EINVAL;)294 1530 A
- 5490 V
- (11906)210 648 A
- 1110(})S
- (else)168 1194 A
- 5580 V
- (11907)210 648 A
- 1110(if)S
- ((numap(m_ptr->PROC_NR,)924 1236 A
- ((vir_bytes))462 2202 A
- (m_ptr->ADDRESS,)630 2706 A
- (m_ptr->COUNT))546 3378 A
- 3966(==)S
- 4092(0))S
- 4218({)S
- 5670 V
- (11908)210 648 A
- 1362(r)S
- 1446(=)S
- (EFAULT;)294 1530 A
- 5760 V
- (11909)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 5850 V
- (11910)210 648 A
- 1362(/*)S
- (Copy)168 1488 A
- (information)462 1698 A
- (from)168 2202 A
- (the)126 2412 A
- (message)294 2580 A
- 2916(to)S
- (the)126 3042 A
- (tty)126 3210 A
- (struct.)294 3378 A
- 3714(*/)S
- 5940 V
- (11911)210 648 A
- (tp->tty_inrepcode)714 1362 A
- 2118(=)S
- (TASK_REPLY;)462 2202 A
- 6030 V
- (11912)210 648 A
- (tp->tty_incaller)672 1362 A
- 2076(=)S
- (m_ptr->m_source;)672 2160 A
- 6120 V
- (11913)210 648 A
- (tp->tty_inproc)588 1362 A
- 1992(=)S
- (m_ptr->PROC_NR;)630 2076 A
- 6210 V
- (11914)210 648 A
- (tp->tty_in_vir)588 1362 A
- 1992(=)S
- ((vir_bytes))462 2076 A
- (m_ptr->ADDRESS;)630 2580 A
- 8418 V
- EP
- %%Page: 159 159
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2089(File:)S
- (src/kernel/tty.c)665 2322 A
- 12 B
- (159)180 4248 A
- 900 V
- 7 LST
- (11915)210 648 A
- (tp->tty_inleft)588 1362 A
- 1992(=)S
- (m_ptr->COUNT;)546 2076 A
- 990 V
- (11916)210 648 A
- 1080 V
- (11917)210 648 A
- 1362(if)S
- ((!(tp->tty_termios.c_lflag)1092 1488 A
- 2622(&)S
- (ICANON))294 2706 A
- 1170 V
- (11918)210 648 A
- 2706(&&)S
- (tp->tty_termios.c_cc[VTIME])1134 2832 A
- 4008(>)S
- 4092(0))S
- 4218({)S
- 1260 V
- (11919)210 648 A
- 1698(if)S
- ((tp->tty_termios.c_cc[VMIN])1134 1824 A
- 3000(==)S
- 3126(0))S
- 3252({)S
- 1350 V
- (11920)210 648 A
- 2034(/*)S
- (MIN)126 2160 A
- 2328(&)S
- (TIME)168 2412 A
- (specify)294 2622 A
- 2958(a)S
- (read)168 3042 A
- (timer)210 3252 A
- (that)168 3504 A
- (finishes)336 3714 A
- (the)126 4092 A
- 1440 V
- (11921)210 648 A
- 2076(*)S
- (read)168 2160 A
- 2370(in)S
- (TIME/10)294 2496 A
- (seconds)294 2832 A
- 3168(if)S
- 3294(no)S
- (bytes)210 3420 A
- (are)126 3672 A
- (available.)420 3840 A
- 1530 V
- (11922)210 648 A
- 2076(*/)S
- 1620 V
- (11923)210 648 A
- (lock();)294 2034 A
- 1710 V
- (11924)210 648 A
- (settimer(tp,)504 2034 A
- (TRUE);)252 2580 A
- 1800 V
- (11925)210 648 A
- (tp->tty_min)462 2034 A
- 2538(=)S
- 2622(1;)S
- 1890 V
- (11926)210 648 A
- (unlock();)378 2034 A
- 1980 V
- (11927)210 648 A
- 1698(})S
- (else)168 1782 A
- 1992({)S
- 2070 V
- (11928)210 648 A
- 2034(/*)S
- (MIN)126 2160 A
- 2328(&)S
- (TIME)168 2412 A
- (specify)294 2622 A
- 2958(an)S
- (inter-byte)420 3084 A
- (timer)210 3546 A
- (that)168 3798 A
- (may)126 4008 A
- 2160 V
- (11929)210 648 A
- 2076(*)S
- (have)168 2160 A
- 2370(to)S
- 2496(be)S
- (cancelled)378 2622 A
- 3042(if)S
- (there)210 3168 A
- (are)126 3420 A
- 3588(no)S
- (bytes)210 3714 A
- (yet.)168 3966 A
- 2250 V
- (11930)210 648 A
- 2076(*/)S
- 2340 V
- (11931)210 648 A
- 2034(if)S
- ((tp->tty_eotct)588 2160 A
- 2790(==)S
- 2916(0))S
- 3042({)S
- 2430 V
- (11932)210 648 A
- (lock();)294 2370 A
- 2520 V
- (11933)210 648 A
- (settimer(tp,)504 2370 A
- (FALSE);)294 2916 A
- 2610 V
- (11934)210 648 A
- (unlock();)378 2370 A
- 2700 V
- (11935)210 648 A
- (tp->tty_min)462 2370 A
- 2874(=)S
- (tp->tty_termios.c_cc[VMIN];)1134 2958 A
- 2790 V
- (11936)210 648 A
- 2034(})S
- 2880 V
- (11937)210 648 A
- 1698(})S
- 2970 V
- (11938)210 648 A
- 1362(})S
- 3060 V
- (11939)210 648 A
- 3150 V
- (11940)210 648 A
- 1362(/*)S
- (Anything)336 1488 A
- (waiting)294 1866 A
- 2202(in)S
- (the)126 2328 A
- (input)210 2496 A
- (buffer?)294 2748 A
- (Clear)210 3084 A
- 3336(it)S
- (out...)252 3462 A
- 3756(*/)S
- 3240 V
- (11941)210 648 A
- (in_transfer(tp);)672 1362 A
- 3330 V
- (11942)210 648 A
- 1362(/*)S
- (...then)294 1488 A
- 1824(go)S
- (back)168 1950 A
- (for)126 2160 A
- (more)168 2328 A
- 2538(*/)S
- 3420 V
- (11943)210 648 A
- (handle_events(tp);)756 1362 A
- 3510 V
- (11944)210 648 A
- 1362(if)S
- ((tp->tty_inleft)630 1488 A
- 2160(==)S
- 2286(0))S
- (return;)294 2412 A
- 3378(/*)S
- (already)294 3504 A
- (done)168 3840 A
- 4050(*/)S
- 3600 V
- (11945)210 648 A
- 3690 V
- (11946)210 648 A
- 1362(/*)S
- (There)210 1488 A
- (were)168 1740 A
- 1950(no)S
- (bytes)210 2076 A
- 2328(in)S
- (the)126 2454 A
- (input)210 2622 A
- (queue)210 2874 A
- (available,)420 3126 A
- 3588(so)S
- (either)252 3714 A
- (suspend)294 4008 A
- 3780 V
- (11947)210 648 A
- 1404(*)S
- (the)126 1488 A
- (caller)252 1656 A
- 1950(or)S
- (break)210 2076 A
- (off)126 2328 A
- (the)126 2496 A
- (read)168 2664 A
- 2874(if)S
- (nonblocking.)504 3000 A
- 3870 V
- (11948)210 648 A
- 1404(*/)S
- 3960 V
- (11949)210 648 A
- 1362(if)S
- ((m_ptr->TTY_FLAGS)714 1488 A
- 2244(&)S
- (O_NONBLOCK))462 2328 A
- 2832({)S
- 4050 V
- (11950)210 648 A
- 1698(r)S
- 1782(=)S
- (EAGAIN;)294 1866 A
- 3378(/*)S
- (cancel)252 3504 A
- (the)126 3798 A
- (read)168 3966 A
- 4176(*/)S
- 4140 V
- (11951)210 648 A
- (tp->tty_inleft)588 1698 A
- 2328(=)S
- (tp->tty_incum)546 2412 A
- 3000(=)S
- 3084(0;)S
- 4230 V
- (11952)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 4320 V
- (11953)210 648 A
- 1698(r)S
- 1782(=)S
- (SUSPEND;)336 1866 A
- 3378(/*)S
- (suspend)294 3504 A
- (the)126 3840 A
- (caller)252 4008 A
- 4302(*/)S
- 4410 V
- (11954)210 648 A
- (tp->tty_inrepcode)714 1698 A
- 2454(=)S
- (REVIVE;)294 2538 A
- 4500 V
- (11955)210 648 A
- 1362(})S
- 4590 V
- (11956)210 648 A
- 1110(})S
- 4680 V
- (11957)210 648 A
- (tty_reply(TASK_REPLY,)882 1110 A
- (m_ptr->m_source,)672 2034 A
- (m_ptr->PROC_NR,)630 2748 A
- (r);)126 3420 A
- 4770 V
- (11958)210 648 A
- 1026(})S
- 5040 V
- (11961)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5130 V
- (11962)210 648 A
- 1068(*)S
- (do_write)336 2370 A
- 4260(*)S
- 5220 V
- (11963)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5310 V
- (11964)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (do_write(tp,)504 1572 A
- (m_ptr))252 2118 A
- 5400 V
- (11965)210 648 A
- (register)336 1026 A
- (tty_t)210 1404 A
- (*tp;)168 1656 A
- 5490 V
- (11966)210 648 A
- (register)336 1026 A
- (message)294 1404 A
- (*m_ptr;)294 1740 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (message)294 2958 A
- (sent)168 3294 A
- 3504(to)S
- (the)126 3630 A
- (task)168 3798 A
- 4008(*/)S
- 5580 V
- (11967)210 648 A
- 1026({)S
- 5670 V
- (11968)210 648 A
- 1026(/*)S
- 1152(A)S
- (process)294 1236 A
- (wants)210 1572 A
- 1824(to)S
- (write)210 1950 A
- 2202(on)S
- 2328(a)S
- (terminal.)378 2412 A
- 2832(*/)S
- 5760 V
- (11969)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 5850 V
- (11970)210 648 A
- 5940 V
- (11971)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(if)S
- (there)210 1614 A
- 1866(is)S
- (already)294 1992 A
- 2328(a)S
- (process)294 2412 A
- (hanging)294 2748 A
- 3084(in)S
- 3210(a)S
- (write,)252 3294 A
- (check)210 3588 A
- 3840(if)S
- (the)126 3966 A
- 6030 V
- (11972)210 648 A
- 1152(*)S
- (parameters)420 1236 A
- (are)126 1698 A
- (correct,)336 1866 A
- 2244(do)S
- (I/O.)168 2370 A
- 6120 V
- (11973)210 648 A
- 1152(*/)S
- 6210 V
- (11974)210 648 A
- 1110(if)S
- ((tp->tty_outleft)672 1236 A
- 1950(>)S
- 2034(0))S
- 2160({)S
- 8418 V
- EP
- %%Page: 160 160
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (160)180 648 A
- 11 R
- 2089(File:)S
- (src/kernel/tty.c)665 2322 A
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (11975)210 648 A
- 1362(r)S
- 1446(=)S
- (EIO;)168 1530 A
- 990 V
- (11976)210 648 A
- 1110(})S
- (else)168 1194 A
- 1080 V
- (11977)210 648 A
- 1110(if)S
- ((m_ptr->COUNT)546 1236 A
- 1824(<=)S
- 1950(0))S
- 2076({)S
- 1170 V
- (11978)210 648 A
- 1362(r)S
- 1446(=)S
- (EINVAL;)294 1530 A
- 1260 V
- (11979)210 648 A
- 1110(})S
- (else)168 1194 A
- 1350 V
- (11980)210 648 A
- 1110(if)S
- ((numap(m_ptr->PROC_NR,)924 1236 A
- ((vir_bytes))462 2202 A
- (m_ptr->ADDRESS,)630 2706 A
- (m_ptr->COUNT))546 3378 A
- 3966(==)S
- 4092(0))S
- 4218({)S
- 1440 V
- (11981)210 648 A
- 1362(r)S
- 1446(=)S
- (EFAULT;)294 1530 A
- 1530 V
- (11982)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 1620 V
- (11983)210 648 A
- 1362(/*)S
- (Copy)168 1488 A
- (message)294 1698 A
- (parameters)420 2034 A
- 2496(to)S
- (the)126 2622 A
- (tty)126 2790 A
- (structure.)420 2958 A
- 3420(*/)S
- 1710 V
- (11984)210 648 A
- (tp->tty_outrepcode)756 1362 A
- 2160(=)S
- (TASK_REPLY;)462 2244 A
- 1800 V
- (11985)210 648 A
- (tp->tty_outcaller)714 1362 A
- 2118(=)S
- (m_ptr->m_source;)672 2202 A
- 1890 V
- (11986)210 648 A
- (tp->tty_outproc)630 1362 A
- 2034(=)S
- (m_ptr->PROC_NR;)630 2118 A
- 1980 V
- (11987)210 648 A
- (tp->tty_out_vir)630 1362 A
- 2034(=)S
- ((vir_bytes))462 2118 A
- (m_ptr->ADDRESS;)630 2622 A
- 2070 V
- (11988)210 648 A
- (tp->tty_outleft)630 1362 A
- 2034(=)S
- (m_ptr->COUNT;)546 2118 A
- 2160 V
- (11989)210 648 A
- 2250 V
- (11990)210 648 A
- 1362(/*)S
- (Try)126 1488 A
- 1656(to)S
- (write.)252 1782 A
- 2076(*/)S
- 2340 V
- (11991)210 648 A
- (handle_events(tp);)756 1362 A
- 2430 V
- (11992)210 648 A
- 1362(if)S
- ((tp->tty_outleft)672 1488 A
- 2202(==)S
- 2328(0))S
- (return;)294 2454 A
- 3378(/*)S