aboutsummaryrefslogtreecommitdiffstats
path: root/doc/bus_close.3
blob: 94e23a84b5d9088592a3d827d2493c1e6c6c480f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.TH BUS_CLOSE 1 BUS-%VERSION%
.SH NAME
bus_close - Close a bus
.SH SYNOPSIS
#include <bus.h>

int bus_close(bus_t *bus);
.SH DESCRIPTION
The \fIbus_close\fP function shall dispose of resource require for the process to use a bus whose information is stored in \fIbus\fP.
.SH RETURN VALUES
Upon successful completion, the function shall return 0. Otherwise the function shall return -1 and set \fIerrno\fP to indicate the error.
.SH ERRORS
.TP
.IR EINVAL
The bus does not exist.
.SH SEE ALSO
bus-create(1), bus(5), libbus(7), bus_open(3), bus_unlink(3)
.SH AUTHORS
See the LICENSE file for the authors.
.SH LICENSE
See the LICENSE file for the terms of redistribution.
.SH BUGS
Please report them.