/* * ALSA sequencer Client Manager * Copyright (c) 1998-1999 by Frank van de Pol * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef __SND_SEQ_CLIENTMGR_H #define __SND_SEQ_CLIENTMGR_H #include #include #include "seq_fifo.h" #include "seq_ports.h" #include "seq_lock.h" /* client manager */ struct snd_seq_user_client { struct file *file; /* file struct of client */ /* ... */ struct pid *owner; /* fifo */ struct snd_seq_fifo *fifo; /* queue for incoming events */ int fifo_pool_size; }; struct snd_seq_kernel_client { /* ... */ struct snd_card *card; }; struct snd_seq_client { snd_seq_client_type_t type; unsigned int accept_input: 1, accept_output: 1; char name[64]; /* client name */ int number; /* client number */ unsigned int filter; /* filter flags */ DECLARE_BITMAP(event_filter, 256); snd_use_lock_t use_lock; int event_lost; /* ports */ int num_ports; /* number of ports */ struct list_head ports_list_head; rwlock_t ports_lock; struct mutex ports_mutex; int convert32; /* convert 32->64bit */ /* output pool */ struct snd_seq_pool *pool; /* memory pool for this client */ union { struct snd_seq_user_client user; struct snd_seq_kernel_client kernel; } data; }; /* usage statistics */ struct snd_seq_usage { int cur; int peak; }; int client_init_data(void); int snd_sequencer_device_init(void); void snd_sequencer_device_done(void); /* get locked pointer to client */ struct snd_seq_client *snd_seq_client_use_ptr(int clientid); /* unlock pointer to client */ #define snd_seq_client_unlock(client) snd_use_lock_free(&(client)->use_lock) /* dispatch event to client(s) */ int snd_seq_dispatch_event(struct snd_seq_event_cell *cell, int atomic, int hop); /* exported to other modules */ int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop); int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev, struct file *file, int atomic, int hop); int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait); int snd_seq_client_notify_subscription(int client, int port, struct snd_seq_port_subscribe *info, int evtype); extern int seq_client_load[15]; #endif alue='1254856c07e0e5707d3291f625db8ed69a866be2'/>
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-10 13:51:05 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-10 13:51:05 -0500
commit1254856c07e0e5707d3291f625db8ed69a866be2 (patch)
tree40907b346d00bd22b9db7a48702a0541d8ded3bb /net/sunrpc
parente3f29c4809a5f562adc345c48ed9785f2597df78 (diff)
parent4d56a29f17508b2eb8bee66b8f0e3679201fa807 (diff)
Merge branch 'dsa-phy-include'
Florian Fainelli says: ==================== net: dsa: remove unnecessary phy.h include Including phy.h and phy_fixed.h into net/dsa.h causes phy*.h to be an unnecessary dependency for quite a large amount of the kernel. There's very little which actually requires definitions from phy.h in net/dsa.h - the include itself only wants the declaration of a couple of structures and IFNAMSIZ. Add linux/if.h for IFNAMSIZ, declarations for the structures, phy.h to mv88e6xxx.h as it needs it for phy_interface_t, and remove both phy.h and phy_fixed.h from net/dsa.h. This patch reduces from around 800 files rebuilt to around 40 - even with ccache, the time difference is noticable. In order to make this change, several drivers need to be updated to include necessary headers that they were picking up through this include. This has resulted in a much larger patch series. I'm assuming the 0-day builder has had 24 hours with this series, and hasn't reported any further issues with it - the last issue was two weeks ago (before I became ill) which I fixed over the last weekend. I'm hoping this doesn't conflict with what's already in net-next... David, this should probably go via your tree considering the diffstat. Changes in v2: - took Russell's patch series - removed Qualcomm EMAC patch - rebased against net-next/master ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_backchannel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c