Blame iscsiuio/src/unix/nic_nl.h

Packit Service 646995
/*
Packit Service 646995
 * Copyright (c) 2009-2011, Broadcom Corporation
Packit Service 646995
 * Copyright (c) 2014, QLogic Corporation
Packit Service 646995
 *
Packit Service 646995
 * Written by:  Benjamin Li  (benli@broadcom.com)
Packit Service 646995
 *
Packit Service 646995
 * All rights reserved.
Packit Service 646995
 *
Packit Service 646995
 * Redistribution and use in source and binary forms, with or without
Packit Service 646995
 * modification, are permitted provided that the following conditions
Packit Service 646995
 * are met:
Packit Service 646995
 * 1. Redistributions of source code must retain the above copyright
Packit Service 646995
 *    notice, this list of conditions and the following disclaimer.
Packit Service 646995
 * 2. Redistributions in binary form must reproduce the above copyright
Packit Service 646995
 *    notice, this list of conditions and the following disclaimer in the
Packit Service 646995
 *    documentation and/or other materials provided with the distribution.
Packit Service 646995
 * 3. All advertising materials mentioning features or use of this software
Packit Service 646995
 *    must display the following acknowledgement:
Packit Service 646995
 *      This product includes software developed by Adam Dunkels.
Packit Service 646995
 * 4. The name of the author may not be used to endorse or promote
Packit Service 646995
 *    products derived from this software without specific prior
Packit Service 646995
 *    written permission.
Packit Service 646995
 *
Packit Service 646995
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
Packit Service 646995
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Packit Service 646995
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit Service 646995
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
Packit Service 646995
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit Service 646995
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
Packit Service 646995
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Packit Service 646995
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
Packit Service 646995
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Packit Service 646995
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Packit Service 646995
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 646995
 *
Packit Service 646995
 * nic_nl.h - NIC uIP NetLink user space stack
Packit Service 646995
 *
Packit Service 646995
 */
Packit Service 646995
Packit Service 646995
#ifndef __NIC_NL_H__
Packit Service 646995
#define __NIC_NL_H__
Packit Service 646995
Packit Service 646995
#include <pthread.h>
Packit Service 646995
Packit Service 646995
int nic_nl_open();
Packit Service 646995
void nic_nl_close();
Packit Service 646995
Packit Service 646995
int __kipc_call(int fd, void *iov_base, int iov_len);
Packit Service 646995
Packit Service 646995
extern pthread_cond_t nl_process_if_down_cond;
Packit Service 646995
extern pthread_mutex_t nl_process_mutex;
Packit Service 646995
extern int nl_process_if_down;
Packit Service 646995
Packit Service 646995
#endif /* __NIC_NL_H__ */