.\" Automatically generated man page, do not edit .TH nozzle_run_updown 3 2020-04-23 "kronosnet" "Kronosnet Programmer's Manual" .SH NAME nozzle_run_updown \- execute updown commands associated with a nozzle device. .SH SYNOPSIS .nf .B #include .sp \fBint nozzle_run_updown\fP( \fBconst nozzle_t \fP\fInozzle\fP, \fBuint8_t \fP\fIaction\fP, \fBchar **\fP\fIexec_string\fP ); .fi .SH DESCRIPTION .PP nozzle_run_updown .PP nozzle - pointer to the nozzle struct .PP action - pre-up.d / up.d / down.d / post-down.d (see defines above) .PP exec_string - pointers to string to record executing action stdout/stderr. The string is malloc'ed, the caller needs to free the buffer. If the script generates no output this string might be NULL. .PP It is the application responsibility to call helper scripts before or after creating/destroying interfaces or IP addresses. .SH RETURN VALUE .PP 0 on success -1 on error and errno is set (sanity checks and internal calls. -2 on error from executing the shell scripts, and no errno is set. .SH SEE ALSO .PP .nh .ad l \fInozzle_close(3), \fInozzle_set_mtu(3), \fInozzle_get_fd(3), \fInozzle_get_mtu(3), \fInozzle_reset_mtu(3), \fInozzle_set_up(3), \fInozzle_get_ips(3), \fInozzle_set_down(3), \fInozzle_reset_mac(3), \fInozzle_get_handle_by_name(3), \fInozzle_open(3), \fInozzle_del_ip(3), \fInozzle_get_mac(3), \fInozzle_set_mac(3), \fInozzle_get_name_by_handle(3), \fInozzle_add_ip(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.