History

ALSA: fireface: add field for the number of messages copied to user space

Current structure includes no field to express the number of messages copied to user space, thus user space application needs to information out of the structure to parse the content of structure. This commit adds a field to express the number of messages copied to user space since It is more preferable to use self-contained structure. Kees Cook proposed an idea of annotation for bound of flexible arrays in his future improvement for flexible-length array in kernel. The additional field for message count is suitable to the idea as well.

Takashi Sakamoto committed 3 years ago

Commit 0d9eb7e1 parent d045bce2 files · +18 −12Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/sound/firewire.h+2−0
@@ -78,6 +78,7 @@ struct snd_firewire_event_motu_register_dsp_change { · 77 unmodified lines
7878 * operating hardware knob.
7979 *
8080 * @type: Fixed to SNDRV_FIREWIRE_EVENT_FF400_MESSAGE.
81+ * @message_count: The number of messages.
8182 * @messages.message: The messages expressing hardware knob operation.
8283 * @messages.tstamp: The isochronous cycle at which the request subaction of asynchronous
8384 * transaction was sent to deliver the message. It has 16 bit unsigned integer
@@ -89,6 +90,7 @@ struct snd_firewire_event_motu_register_dsp_change { · 5 unmodified lines
8990 */
9091 struct snd_firewire_event_ff400_message {
9192 unsigned int type;
93+ unsigned int message_count;
9294 struct {
9395 __u32 message;
9496 __u32 tstamp;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t