1gensio_accepter_set_callbackL(i3b)rary Functions Mangueanlsio_accepter_set_callback(3)
2
3
4
6 gensio_accepter_set_callback, gensio_accepter_get_user_data, gensio_ac‐
7 cepter_set_user_data - Set the event callback and user data for a gen‐
8 sio accepter
9
11 #include <gensio/gensio.h>
12
13 void gensio_accepter_set_callback(struct gensio *io,
14 gensio_accepter_event cb, void *user_data)
15
16 void gensio_accepter_set_user_data(struct gensio *io, void *user_data);
17
18 void *gensio_accepter_get_user_data(struct gensio *io)
19
21 gensio_accepter_set_callback sets the event handler and data for the
22 gensio accepter. This function may be called again if the gensio ac‐
23 cepter cannot generate any callbacks, generally after it has been shut‐
24 down. Otherwise race conditions may occur.
25
26 gensio_accepter_set_user_data Just sets the user_data field in the gen‐
27 sio accepter. If this is called when the gensio is running, race con‐
28 ditions may occur.
29
30 gensio_accepter_get_user_data Return the user data passed in with the
31 gensio accepter was created or set by one of the above two functions.
32
34 gensio(5), gensio_accepter_event(3)
35
36
37
38 27 Feb 2019 gensio_accepter_set_callback(3)