File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / ttwrite0
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

ttttwwrriittee00() -- Terminal-Device Routine

#iinncclluuddee <ssyyss/iioo.hh>
#iinncclluuddee <ssyyss/ttttyy.hh>
vvooiidd
ttttwwrriittee00(_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;

ttttwwrriittee00() moves data  to an output queue associated with  _t_p, from the I/O
area referenced by _i_o_p. 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 or is
not NULL, the function call (*_f_u_n_c_1)(_a_r_g_1) is performed whenever ttttwwrriittee00()
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 ttttwwrriittee00() is about to sleep.

ttttwwrriittee(_t_p, _i_o_p) is equivalent to ttttwwrriittee00(_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.