• Takashi Sakamoto's avatar
    ALSA: seq: add an alternative way to handle ioctl requests · 8ce8eb60
    Takashi Sakamoto authored
    ALSA sequencer is designed with two types of clients; application and
    kernel. Operations for each ioctl command should handle data in both of
    user space and kernel space, while current implementation just allows them
    to handle data in user space. Data in kernel space is handled with change
    of address limit of running tasks.
    
    This commit adds a new table to map ioctl commands to corresponding
    functions. The functions get data in kernel space. Helper functions to
    operate kernel and application clients seek entries from the table.
    Especially, the helper function for application is responsible for coping
    from user space to kernel space or vise versa.
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    8ce8eb60
seq_clientmgr.c 69 KB