sound/usb/line6/midi.h
Source file repositories/reference/linux-study-clean/sound/usb/line6/midi.h
File Facts
- System
- Linux kernel
- Corpus path
sound/usb/line6/midi.h- Extension
.h- Size
- 1118 bytes
- Lines
- 48
- Domain
- Driver Families
- Bucket
- sound/usb
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
sound/rawmidi.hmidibuf.h
Detected Declarations
struct snd_line6_midi
Annotated Snippet
struct snd_line6_midi {
/* Pointer back to the Line 6 driver data structure */
struct usb_line6 *line6;
/* MIDI substream for receiving (or NULL if not active) */
struct snd_rawmidi_substream *substream_receive;
/* MIDI substream for transmitting (or NULL if not active) */
struct snd_rawmidi_substream *substream_transmit;
/* Number of currently active MIDI send URBs */
int num_active_send_urbs;
/* Spin lock to protect MIDI buffer handling */
spinlock_t lock;
/* Wait queue for MIDI transmission */
wait_queue_head_t send_wait;
/* Buffer for incoming MIDI stream */
struct midi_buffer midibuf_in;
/* Buffer for outgoing MIDI stream */
struct midi_buffer midibuf_out;
};
extern int line6_init_midi(struct usb_line6 *line6);
extern void line6_midi_receive(struct usb_line6 *line6, unsigned char *data,
int length);
#endif
Annotation
- Immediate include surface: `sound/rawmidi.h`, `midibuf.h`.
- Detected declarations: `struct snd_line6_midi`.
- Atlas domain: Driver Families / sound/usb.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.