|
|
1.1 ! root 1: ttiimmeeoouutt() -- Accessible Kernel Routine ! 2: ! 3: #iinncclluuddee <ssyyss/ttiimmeeoouutt.hh> ! 4: vvooiidd ! 5: ttiimmeeoouutt(_t_p, _n, _f_u_n_c_t_i_o_n, _a) ! 6: TTIIMM *_t_p; ! 7: iinntt _n; ! 8: iinntt (*_f_u_n_c_t_i_o_n)(); ! 9: ! 10: ttiimmeeoouutt() sets _f_u_n_c_t_i_o_n to be called with integer argument _a after _n clock ! 11: ticks. _t_p points to a timing structure to insert into the timing queue. ! 12: The timing structure must be a static structure located in the kernel's ! 13: data segment. Any previous activation of a timer on the same timing ! 14: structure will be cancelled. ! 15: ! 16: Calling ttiimmeeoouutt() with _f_u_n_c_t_i_o_n set to NULL will cancel a timer. A timed ! 17: function should never sleep or alter the contents of the uu structure. ! 18: ! 19: _S_e_e _A_l_s_o ! 20: aacccceessssiibbllee kkeerrnneell rroouuttiinneess
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.