Skip to main content

DEFAULT_MAX_TRANSFER_SIZE

Constant DEFAULT_MAX_TRANSFER_SIZE 

Source
pub const DEFAULT_MAX_TRANSFER_SIZE: u32 = _; // 1_048_576u32
Expand description

Largest single payload transfer the host asks for: aravis’s default (ARV_UV_STREAM_MAXIMUM_TRANSFER_SIZE_DEFAULT, 1 MiB).

The device imposes only an alignment (SIRM Info); the size is the host’s to choose. The limit is the host’s memory for transfers in flight: Linux gives a process 16 MiB of usbfs memory by default (usbfs_memory_mb), and DEFAULT_TRANSFERS_IN_FLIGHT of these fit in half of it.