#include <linux/stddef.h>
#include <linux/kmod.h>
#include <linux/spinlock.h>
#include "sound_config.h"
Go to the source code of this file.
|
int | MIDIbuf_open (int dev, struct file *file) |
|
void | MIDIbuf_release (int dev, struct file *file) |
|
int | MIDIbuf_write (int dev, struct file *file, const char __user *buf, int count) |
|
int | MIDIbuf_read (int dev, struct file *file, char __user *buf, int count) |
|
int | MIDIbuf_ioctl (int dev, struct file *file, unsigned int cmd, void __user *arg) |
|
unsigned int | MIDIbuf_poll (int dev, struct file *file, poll_table *wait) |
|
int | MIDIbuf_avail (int dev) |
|
| EXPORT_SYMBOL (MIDIbuf_avail) |
|
#define DATA_AVAIL |
( |
|
q | ) |
(q->len) |
#define MAX_QUEUE_SIZE 4000 |
#define QUEUE_BYTE |
( |
|
q, |
|
|
|
data |
|
) |
| |
Value:
{ \
spin_lock_irqsave(&lock, flags); \
q->queue[
q->tail] = (
data); \
spin_unlock_irqrestore(&lock, flags); \
}
Definition at line 61 of file midibuf.c.
#define REMOVE_BYTE |
( |
|
q, |
|
|
|
data |
|
) |
| |
Value:
{ \
spin_lock_irqsave(&lock, flags);
\
spin_unlock_irqrestore(&lock, flags); \
}
Definition at line 71 of file midibuf.c.