hci_vhci.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | hci_vhci.c (b03efcfb2180289718991bb984044ce6c5b7d1b0) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 106 unchanged lines hidden (view full) --- 115 116/* Poll */ 117static unsigned int hci_vhci_chr_poll(struct file *file, poll_table * wait) 118{ 119 struct hci_vhci_struct *hci_vhci = (struct hci_vhci_struct *) file->private_data; 120 121 poll_wait(file, &hci_vhci->read_wait, wait); 122 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 106 unchanged lines hidden (view full) --- 115 116/* Poll */ 117static unsigned int hci_vhci_chr_poll(struct file *file, poll_table * wait) 118{ 119 struct hci_vhci_struct *hci_vhci = (struct hci_vhci_struct *) file->private_data; 120 121 poll_wait(file, &hci_vhci->read_wait, wait); 122 |
123 if (skb_queue_len(&hci_vhci->readq)) | 123 if (!skb_queue_empty(&hci_vhci->readq)) |
124 return POLLIN | POLLRDNORM; 125 126 return POLLOUT | POLLWRNORM; 127} 128 129/* Get packet from user space buffer(already verified) */ 130static inline ssize_t hci_vhci_get_user(struct hci_vhci_struct *hci_vhci, const char __user *buf, size_t count) 131{ --- 233 unchanged lines hidden --- | 124 return POLLIN | POLLRDNORM; 125 126 return POLLOUT | POLLWRNORM; 127} 128 129/* Get packet from user space buffer(already verified) */ 130static inline ssize_t hci_vhci_get_user(struct hci_vhci_struct *hci_vhci, const char __user *buf, size_t count) 131{ --- 233 unchanged lines hidden --- |