xref: /illumos-gate/usr/src/man/man3fcoe/FCOE_DeletePort.3fcoe (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
te
Copyright (c) 2009, Sun Microsystems Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
FCOE_DELETEPORT 3FCOE "Apr 1, 2009"
NAME
FCOE_DeletePort - delete an FCoE port
SYNOPSIS

cc [ flag... ] file... -lfcoe [ library... ]
#include <libfcoe.h>

int FCOE_DeletePort(const char *macLinkName);
PARAMETERS
macLinkName

The name of the MAC link from which to delete the FCoE port.

DESCRIPTION

The FCOE_DeletePort() function deletes an FCoE port from the specified MAC link.

RETURN VALUES

The following values are returned: FCOE_STATUS_ERROR_BUSY

The fcoe driver is busy and cannot complete the operation.

FCOE_STATUS_ERROR_MAC_LEN

The MAC link name exceeds the maximum length.

FCOE_STATUS_MAC_NOT_FOUND

The FCoE port was not found on the specified MAC link.

FCOE_STATUS_OK

The API call was successful.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO

libfcoe (3LIB), attributes (7)