Hi,
For purpose of this patchset, please refer to my previous post: [alsa-devel] obsolete change of address limit http://mailman.alsa-project.org/pipermail/alsa-devel/2016-August/110937.html
Changes in v2: - Use '_IOC_SIZE' macro to calculate the size of argument of ioctl command. - Keep redundant longer name. - Improve comments. - Merge some patches relevant to the same features.
I give up using 'dir' field in each ioctl command to decide copying, because some ioctl commands for ALSA sequencer core includes bugs against actual implementations.
Takashi Sakamoto (27): ALSA: seq: add const qualifier to table of functions for ioctl ALSA: seq: fulfill callback entry for ioctl ALSA: seq: copy ioctl data from user space to kernel stack ALSA: seq: add documentation for snd_seq_kernel_client_ctl ALSA: seq: obsolete address mode in compatibility layer ALSA: seq: obsolete change of address limit in in-kernel path for ioctl ALSA: seq: obsolete address limit helper ALSA: seq: optimize pversion function to new design ALSA: seq: optimize client_id function to new design ALSA: seq: optimize system_info function to new design ALSA: seq: optimize running mode function to new design ALSA: seq: optimize get/set_client_info function to new design ALSA: seq: optimize create/delete_port function to new design ALSA: seq: optimize get/set_port_info function to new design ALSA: seq: optimize subscribe_port function to new design ALSA: seq: optimize create/delete_queue function to new design ALSA: seq: optimize get/set_queue_info function to new design ALSA: seq: optimize get/set_queue_info function to new design ALSA: seq: optimize get_named_queue function to new design ALSA: seq: optimize get_queue_status function to new design ALSA: seq: optimize get/set_queue_tempo function to new design ALSA: seq: optimize get/set_queue_timer function to new design ALSA: seq: optimize get/set_queue_client function to new design ALSA: seq: optimize get/set_client_pool function to new design ALSA: seq: optimize remove_events function to new design ALSA: seq: optimize get_subscription function to new design ALSA: seq: optimize query functions for subscribes, next client and port to new design
sound/core/seq/seq_clientmgr.c | 750 +++++++++++++++++++---------------------- sound/core/seq/seq_compat.c | 26 +- 2 files changed, 353 insertions(+), 423 deletions(-)