.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "BOND_NEXT_VLAN" "9" "09 October 2005" "" ""
.SH NAME
bond_next_vlan \- safely skip to the next item in the vlans list.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct vlan_entry * bond_next_vlan (struct bonding * \fIbond\fB, struct vlan_entry * \fIcurr\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbond\fB\fR
the bond we're working on
.TP
\fB\fIcurr\fB\fR
item we're advancing from
.SH "DESCRIPTION"
.PP
Returns NULL if list is empty, bond->next_vlan if \fIcurr\fR is NULL,
or \fIcurr\fR->next otherwise (even if it is \fIcurr\fR itself again).
.PP
Caller must hold bond->lock