gensio_acc_set_callback - Man Page
Set the event callback and user data for a gensio accepter
Synopsis
#include <gensio/gensio.h>
- void gensio_accepter_set_callback(struct gensio *io,
gensio_accepter_event cb, void *user_data)
void gensio_accepter_set_user_data(struct gensio *io, void *user_data);
void *gensio_accepter_get_user_data(struct gensio *io)
Description
gensio_accepter_set_callback sets the event handler and data for the gensio accepter. This function may be called again if the gensio accepter cannot generate any callbacks, generally after it has been shutdown. Otherwise race conditions may occur.
gensio_accepter_set_user_data Just sets the user_data field in the gensio accepter. If this is called when the gensio is running, race conditions may occur.
gensio_accepter_get_user_data Return the user data passed in with the gensio accepter was created or set by one of the above two functions.
See Also
Referenced By
gensio_accepter_event(3), str_to_gensio_accepter(3).
The man pages gensio_acc_get_user_data(3) and gensio_acc_set_user_data(3) are aliases of gensio_acc_set_callback(3).