1aa0a1e58SJeff Roberson /*- 2aa0a1e58SJeff Roberson * Copyright (c) 2010 Isilon Systems, Inc. 3aa0a1e58SJeff Roberson * Copyright (c) 2010 iX Systems, Inc. 4aa0a1e58SJeff Roberson * Copyright (c) 2010 Panasas, Inc. 5c7818b48SHans Petter Selasky * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6aa0a1e58SJeff Roberson * All rights reserved. 7aa0a1e58SJeff Roberson * 8aa0a1e58SJeff Roberson * Redistribution and use in source and binary forms, with or without 9aa0a1e58SJeff Roberson * modification, are permitted provided that the following conditions 10aa0a1e58SJeff Roberson * are met: 11aa0a1e58SJeff Roberson * 1. Redistributions of source code must retain the above copyright 12aa0a1e58SJeff Roberson * notice unmodified, this list of conditions, and the following 13aa0a1e58SJeff Roberson * disclaimer. 14aa0a1e58SJeff Roberson * 2. Redistributions in binary form must reproduce the above copyright 15aa0a1e58SJeff Roberson * notice, this list of conditions and the following disclaimer in the 16aa0a1e58SJeff Roberson * documentation and/or other materials provided with the distribution. 17aa0a1e58SJeff Roberson * 18aa0a1e58SJeff Roberson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19aa0a1e58SJeff Roberson * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20aa0a1e58SJeff Roberson * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21aa0a1e58SJeff Roberson * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22aa0a1e58SJeff Roberson * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23aa0a1e58SJeff Roberson * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24aa0a1e58SJeff Roberson * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25aa0a1e58SJeff Roberson * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26aa0a1e58SJeff Roberson * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27aa0a1e58SJeff Roberson * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28aa0a1e58SJeff Roberson */ 29307f78f3SVladimir Kondratyev #ifndef _LINUXKPI_LINUX_POLL_H_ 30307f78f3SVladimir Kondratyev #define _LINUXKPI_LINUX_POLL_H_ 31aa0a1e58SJeff Roberson 32aa0a1e58SJeff Roberson #include <sys/poll.h> 33aa0a1e58SJeff Roberson #include <sys/fcntl.h> 34aa0a1e58SJeff Roberson 35a06eeeaaSJake Freeland #include <linux/eventpoll.h> 368e7baabcSHans Petter Selasky #include <linux/wait.h> 378e7baabcSHans Petter Selasky #include <linux/file.h> 388e7baabcSHans Petter Selasky 39aa0a1e58SJeff Roberson typedef struct poll_table_struct { 40aa0a1e58SJeff Roberson } poll_table; 41aa0a1e58SJeff Roberson 426dec7efaSHans Petter Selasky extern void linux_poll_wait(struct linux_file *, wait_queue_head_t *, poll_table *); 436dec7efaSHans Petter Selasky #define poll_wait(...) linux_poll_wait(__VA_ARGS__) 44aa0a1e58SJeff Roberson 45a6b28ee0SHans Petter Selasky extern void linux_poll_wakeup(struct linux_file *); 46a6b28ee0SHans Petter Selasky 47307f78f3SVladimir Kondratyev #endif /* _LINUXKPI_LINUX_POLL_H_ */ 48