Scroll to navigation

SND_CARD_RW_PROC_NEW(9) Proc Info API SND_CARD_RW_PROC_NEW(9)

NAME

snd_card_rw_proc_new - Create a read/write text proc file entry for the card

SYNOPSIS

int snd_card_rw_proc_new(struct snd_card * card, const char * name, void * private_data, void (*read) (struct snd_info_entry *, struct snd_info_buffer *), void (*write) (struct snd_info_entry *entry, struct snd_info_buffer *buffer));

ARGUMENTS

card

the card instance

name

the file name

private_data

the arbitrary private data

read

the read callback

write

the write callback, NULL for read-only

DESCRIPTION

This proc file entry will be registered via snd_card_register call, and it will be removed automatically at the card removal, too.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10