File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / ttread0
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

ttttrreeaadd00() -- Terminal Device Routine

#iinncclluuddee <ssyyss/iioo.hh>
#iinncclluuddee <ssyyss/ttttyy.hh>
vvooiidd
ttttrreeaadd00(_t_p, _i_o_p, _f_u_n_c_1, _a_r_g_1, _f_u_n_c_2, _a_r_g_2)
TTTTYY *_t_p;
IIOO *_i_o_p;
iinntt (*_f_u_n_c_1)(), _a_r_g_1, (*_f_u_n_c_2)(), _a_r_g_2;

ttttrreeaadd00() moves  data from the  input queue associated  with _t_p to  the I/O
area referenced by iioopp. If an error occurs, it sets field uu.uu_eerrrroorr.

The  following behavior  makes  it possible  to  prevent deadlocks  between
coupled drivers,  such as master-slave  pseudoterminal pairs.  If  _f_u_n_c_1 is
not null, the function call (*_f_u_n_c_1)(_a_r_g_1) is  performed whenever ttttrreeaadd00()
is about to sleep.  Likewise, if _f_u_n_c_2 is not null, (*_f_u_n_c_2)(_a_r_g_2)       is
performed whenever ttttrreeaadd00() is about to sleep.

ttttrreeaadd(_t_p, _i_o_p) is equivalent to ttttrreeaadd00(_t_p, _i_o_p, 00, 00, 00, 00).

_S_e_e _A_l_s_o
tteerrmmiinnaall-ddeevviiccee rroouuttiinneess

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.