Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
seq_queue.h File Reference
#include "seq_memory.h"
#include "seq_prioq.h"
#include "seq_timer.h"
#include "seq_lock.h"
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/bitops.h>

Go to the source code of this file.

Data Structures

struct  snd_seq_queue
 

Macros

#define SEQ_QUEUE_NO_OWNER   (-1)
 
#define queuefree(q)   snd_use_lock_free(&(q)->use_lock)
 
#define u64_div(x, y, q)   ((q) = (u32)((u64)(x) / (u64)(y)))
 
#define u64_mod(x, y, r)   ((r) = (u32)((u64)(x) % (u64)(y)))
 
#define u64_divmod(x, y, q, r)   (u64_div(x,y,q), u64_mod(x,y,r))
 

Functions

int snd_seq_queue_get_cur_queues (void)
 
int snd_seq_queues_init (void)
 
void snd_seq_queues_delete (void)
 
int snd_seq_queue_alloc (int client, int locked, unsigned int flags)
 
int snd_seq_queue_delete (int client, int queueid)
 
void snd_seq_queue_client_termination (int client)
 
void snd_seq_queue_client_leave (int client)
 
int snd_seq_enqueue_event (struct snd_seq_event_cell *cell, int atomic, int hop)
 
void snd_seq_queue_client_leave_cells (int client)
 
void snd_seq_queue_remove_cells (int client, struct snd_seq_remove_events *info)
 
struct snd_seq_queuequeueptr (int queueid)
 
struct snd_seq_queuesnd_seq_queue_find_name (char *name)
 
void snd_seq_check_queue (struct snd_seq_queue *q, int atomic, int hop)
 
int snd_seq_queue_check_access (int queueid, int client)
 
int snd_seq_queue_timer_set_tempo (int queueid, int client, struct snd_seq_queue_tempo *info)
 
int snd_seq_queue_set_owner (int queueid, int client, int locked)
 
int snd_seq_queue_set_locked (int queueid, int client, int locked)
 
int snd_seq_queue_timer_open (int queueid)
 
int snd_seq_queue_timer_close (int queueid)
 
int snd_seq_queue_use (int queueid, int client, int use)
 
int snd_seq_queue_is_used (int queueid, int client)
 
int snd_seq_control_queue (struct snd_seq_event *ev, int atomic, int hop)
 

Macro Definition Documentation

#define queuefree (   q)    snd_use_lock_free(&(q)->use_lock)

Definition at line 95 of file seq_queue.h.

#define SEQ_QUEUE_NO_OWNER   (-1)

Definition at line 31 of file seq_queue.h.

#define u64_div (   x,
  y,
  q 
)    ((q) = (u32)((u64)(x) / (u64)(y)))

Definition at line 133 of file seq_queue.h.

#define u64_divmod (   x,
  y,
  q,
  r 
)    (u64_div(x,y,q), u64_mod(x,y,r))

Definition at line 135 of file seq_queue.h.

#define u64_mod (   x,
  y,
  r 
)    ((r) = (u32)((u64)(x) % (u64)(y)))

Definition at line 134 of file seq_queue.h.

Function Documentation

struct snd_seq_queue* queueptr ( int  queueid)
read

Definition at line 220 of file seq_queue.c.

void snd_seq_check_queue ( struct snd_seq_queue q,
int  atomic,
int  hop 
)

Definition at line 254 of file seq_queue.c.

int snd_seq_control_queue ( struct snd_seq_event ev,
int  atomic,
int  hop 
)

Definition at line 732 of file seq_queue.c.

int snd_seq_enqueue_event ( struct snd_seq_event_cell cell,
int  atomic,
int  hop 
)

Definition at line 313 of file seq_queue.c.

int snd_seq_queue_alloc ( int  client,
int  locked,
unsigned int  flags 
)

Definition at line 187 of file seq_queue.c.

int snd_seq_queue_check_access ( int  queueid,
int  client 
)

Definition at line 399 of file seq_queue.c.

void snd_seq_queue_client_leave ( int  client)

Definition at line 587 of file seq_queue.c.

void snd_seq_queue_client_leave_cells ( int  client)

Definition at line 618 of file seq_queue.c.

void snd_seq_queue_client_termination ( int  client)

Definition at line 561 of file seq_queue.c.

int snd_seq_queue_delete ( int  client,
int  queueid 
)

Definition at line 204 of file seq_queue.c.

struct snd_seq_queue* snd_seq_queue_find_name ( char name)
read

Definition at line 236 of file seq_queue.c.

int snd_seq_queue_get_cur_queues ( void  )

Definition at line 55 of file seq_queue.c.

int snd_seq_queue_is_used ( int  queueid,
int  client 
)

Definition at line 542 of file seq_queue.c.

void snd_seq_queue_remove_cells ( int  client,
struct snd_seq_remove_events info 
)

Definition at line 633 of file seq_queue.c.

int snd_seq_queue_set_locked ( int  queueid,
int  client,
int  locked 
)
int snd_seq_queue_set_owner ( int  queueid,
int  client,
int  locked 
)

Definition at line 419 of file seq_queue.c.

int snd_seq_queue_timer_close ( int  queueid)

Definition at line 467 of file seq_queue.c.

int snd_seq_queue_timer_open ( int  queueid)

Definition at line 446 of file seq_queue.c.

int snd_seq_queue_timer_set_tempo ( int  queueid,
int  client,
struct snd_seq_queue_tempo info 
)

Definition at line 481 of file seq_queue.c.

int snd_seq_queue_use ( int  queueid,
int  client,
int  use 
)

Definition at line 510 of file seq_queue.c.

void snd_seq_queues_delete ( void  )

Definition at line 173 of file seq_queue.c.

int snd_seq_queues_init ( void  )

Definition at line 163 of file seq_queue.c.