dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
Todo List
Class cf::array< cf_array_t, cf_basetype_t >
cf::array: templatize container type
Class cf::type<::CFTypeRef >
factory functionality
Page Clock design (future): clocks as entities of their own
A group ticks one thread from a source that is either free running or signalled by whoever holds an abstract::event to it, and which of the two it gets is answered in code rather than by the desc: a bus device's stream::device::hw_clock() override, and the hw_clock(event&, iosize) try/catch in engine::group::initialize() choosing between a device clock and the system clock. The transport - who moves the data in front of a ring - is declared by the desc (dxd/CLAUDE.md, "A ring has two sides and at most one transport"); the clock is the axis this page describes.
Page Driver architecture (future): one shape on every platform
What is marked "decided" is settled, "proposed" still to be agreed; what of it is implemented, the repository says.
Class dx::asio::driver< device_t, driver_t >
strongly consider getting rid of Bills COM macro orgy https://github.com/AlexBAV/moderncom
Member dx::canonical (const std::string &name, size_t length=DX_FILENAME_LENGTH)
should move into platform as requirements are too different between macOS and Windows
Member dx::circular::atomic_add (dst_t *dst, int64_t added)
packed 24bit: no lock-free CAS on a 3-byte element - plain clip-add, not yet atomic (like the floating-point formats)
Member dx::circular::channel< dst_t, src_t >::add (dst_t *dst, const src_t *src, uint64_t bulk, uint32_t dst_gap=0, uint32_t src_gap=0, uint32_t interleaved=1)
floating-point circular formats: not yet made atomic, no concurrent writer needs it today
Struct dx::circular::interlocked< dst_t >
platform-dependent, provisionally placed here same as fence above - belongs as a shared dxd primitive once interface/'s no-dependency-on-kernel/ direction is rethought (see fence's own todo)
Member dx::coreaudio::driver< device_t >::driver (const match &matching_ids, const char *product_id, decltype(super::preference)&&preference, dx::log log={})
handle kext blocking https://developer.apple.com/library/content/technotes/tn2459/_index.html
Member dx::coreaudio::driver< device_t >::notify (::AudioObjectID id, const coreaudio::property::addresses &addresses)
coreaudio::driver::notify(): evaluate other synchronization options
Member dx::coreaudio::server::device< pin_t >::configure (target target, ::UInt64 action, void *info)
coreaudio::server::device::configure(): kAudioDevicePropertyNominalSampleRate does not yet select the pin whose alternate setting matches the requested rate for devices with multiple alternate settings per stream
Member dx::coreaudio::server::device< pin_t >::create_pins ()
coreaudio::server::device::create_pins(): not yet filtered by negotiated sample rate for devices with multiple alternate settings per stream
Member dx::coreaudio::server::device< pin_t >::io_start (::UInt32 client)

coreaudio::server::device::io_start(): starts every pin unconditionally; not yet rate-aware for devices with multiple alternate settings per stream

coreaudio::device::io_start(): check stream state while waiting for cycle switch

Member dx::coreaudio::server::device< pin_t >::launch () override
coreaudio::server::device::launch():
Member dx::coreaudio::server::device< pin_t >::property (::pid_t pid, target target, const ::AudioObjectPropertyAddress &address, void *property, ::UInt32 &size, bool set=false)

provide channel names

coreaudio::server::device::property(): property::device::clients: replace cf::array by cf::dictionary with PIDs as keys

kAudioSelectorControlPropertyAvailableItems: calc clock # settings offset for multiple clock support

Member dx::coreaudio::server::pin< stream_pin_t >::io (::UInt32 operation, ::UInt32 frames, const ::AudioServerPlugInIOCycleInfo *info, void *main)

RT-unsafe: this branch logs (std::clog: heap alloc + os_log) on the coreaudiod IO thread

whenever a dropout/discontinuity occurs at the default log level. Needs a lock-free

counter/flag incremented here and drained + logged by a non-RT thread instead, so the

diagnostic survives at production log levels without doing unsafe work on this thread.

RT-unsafe: same as the ReadInput branch above (std::clog on the IO thread on dropout).

Member dx::coreaudio::server::pin< stream_pin_t >::property (target target, const ::AudioObjectPropertyAddress &address, void *property, ::UInt32 &size, bool set=false)

support sample rate range

evaluate kAudioStreamPropertyIsActive: seems to never get requested

Member dx::coreaudio::stream::device< desc_t, preference_t, stream_t, group_t >::device (decltype(super::driver)&driver, decltype(super::id)&id)
coreaudio::device: validate configuration for clock settings
Member dx::coremidi::driver< device_t >::driver (const match &matching_ids, const char *product_id, dx::log log={})
handle kext blocking https://developer.apple.com/library/content/technotes/tn2459/_index.html
Member dx::coremidi::server::device< stream_pin_t >::launch () override

remove operator=(::MIDIDriverRef)

test if CoreMIDI device image resource exists

Member dx::coremidi::server::device< stream_pin_t >::operator= (::MIDIDriverRef plugin) noexcept
make coremidi_device private
Member dx::coremidi::server::pin< stream_pin_t >::receive (const ::MIDIPacketList *pktlist)

coremidi::server::pin::send(): support fractional MIDI package commit

dx::coremidi::server::pin::receive: make MIDI flow control threshold accessible

Class dx::open< object_t >
check destructor exception declaration
Member dx::platform::license::serial (visit_t visit)
DX_SEC_ENFORCEMENT on Windows
Struct dx::promoting< preference_t, typename >
promoted::preference: consider moving default and alignment into key_value_pair<preference>
Class dx::proxy::device< preference_t >
distinguish between "driver not installed" and "no device"
Member dx::proxy::device< preference_t >::device (decltype(super::driver)&driver, ::io_service_t id, const std::pair< std::string, std::string > &identity={})
proxy::device: find a way to set notification port only propratary DriverKit devices and except on failure to do so.
Member dx::proxy::driver< device_t >::create (const std::string &id, const desc_t &desc)
proxy::driver::operator bool() check if driver is installed
Member dx::proxy::driver< device_t >::match
proxy::driver::connection_id: reflect driver presence
Class dx::reference< object_t >
check destructor exception declaration
Member dx::shared::memory< buffer_t >::initialize (size_t size, bool leftovers)
shared::memory: buffer initialization @ version mismatch!
Member dx::source< _event_t, _clock_t >::event
evaluate clock::status replacement (exception?)
Struct dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::stream::config
move target from stream to stream::config to relate USB alternate interface settings to the configuration
Member dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::stream::pin::name [0x40]
remove redundant pin_desc typedef once the llvm understands templates (coremidi)
Member dx::stream::device< _super_device_t, _desc_t, _stream_t, _group_t >::hw
migrate hw clock generation/distribution into a dedicated clock class
Member dx::stream::engine::group< group_t, _pin_t, circular_t >::free () noexcept
replace test for valid pin by overwise keeping track of allocated channels
Member dx::stream::engine::group< group_t, _pin_t, circular_t >::initialize (uint32_t iosize, const std::vector< bool >(&channel_map)[dx::stream::direction::directions])
clock already runnning with different iosize: check if engine should be initialized with current iosize
Member dx::stream::engine::group< group_t, _pin_t, circular_t >::tick () override
enable re-sync with correct rx/tx position dependent clock event time point
Member dx::stream::stream< device_t, circular_t, super_stream_t, _event_t >::cache
: stream::stream::cache needs to be made protected (coreaudio::device requires cache access)
Member dx::test::driver< super_device_t, device_t, driver_t >::list (const args &={})
: remove obscure cast preventing desc::version and driver::version ambiguity due to single device streaming engine design
Member dx::thread::prio::realtime::initialize (const std::chrono::high_resolution_clock::duration &resolution)
dx::thread::prio: replace experimental hardcoded preemption limit with real limit obtained from machine
Member dx::trace::pretty (std::string function) noexcept
trace::pretty fix: removal of template parameter resolution hint will remove anything between '[' and ']'.
Member dx::usb::audio::isoc::cycle::tick::initialize (uint32_t micro_frames, uint32_t lines, uint32_t line_size)
usb::isoc::cyclce::tick::initialize(): evaluate a more equal aux line distribution across all cycle ticks
Member dx::usb::platform::device< preference_t >::opened
add runloop ////////////////////////////////////////////////////////////////////////////
Member dx::usb::stream::pipe< device_t, circular_t, stream_t >::alloc (size_t=0, bool free=true) override
reset max frame size when pipe is closed
Member dx::usb::stream::pipe< device_t, circular_t, stream_t >::isoc_buffer_create ()
dx::usb::stream::pipe: the non-buffered isoc case (see alloc() below) still only creates once, at construction, since c77a0974's this->circular null-pointer fix depends on that staying true; unexercised by any currently shipping device
Member dx::usb::stream::pipe< device_t, circular_t, stream_t >::received (os_result status, size_t size) override

evaluate non-transaction size transmit handling

log async write callback

Member dx::usb::stream::pipe< device_t, circular_t, stream_t >::transmitted (os_result status, size_t size) override

evaluate non-transaction size transmit handling

log async write callback

evaluate transaction size vs. ring buffer read size

USB HW clock support: hardcoded to USB/out - needs to be handled by clock class

Member dx::version (const std::string &package)
find approprate place
Class dxd::audio::device< device_t >
the IO handler's exchange predates the ring's participant model (dxd CLAUDE.md, "A ring has two sides and at most one transport"): a HAL stream is a participant like a WaveRT endpoint - cursor, transport claim, mix for a client writer - whose endpoint logic belongs shared with wavert::stream, not duplicated
Member dxd::event< dx::kernel >::wait_any (os_event wdm_event, int64_t time=0)
check if event index really needs to be returned in os_result.
Class dxd::event< scope_t >
auto-reset variant
Class dxd::guid
guid: find appropriate place
Member dxd::kmdf::property::fw_device_desc
Should map to kernel variant of "DEVPKEY_Device_BusReportedDeviceDesc"
Member dxd::usb::device< super_device_t >::speed () const
implement WDK low/super speed check for dxd::usb::device::speed() the device's own operating speed: a full speed device behind a high speed hub is full speed
Member dxd::usb::pipe::max_frame_size (unsigned int frame_size)
implement WDK USB max_frame_size() bandwidth adjustment
Member dxd::usb::pipe::write (const ::MDL *mdl) const

return number of written bytes

return number of written bytes

Member dxd::wdm::irp< synchrony_t >::ioctl (const void *post, size_t post_size, unsigned int ioctl, void *receipt, size_t receipt_size, bool internal=false)

: check and refuse IRQL; handle completion

:for asynchronous IRP request: move buffered copy into completion!

Class io::port
io::port: consider seperation from runloop
Member sc::_preference::commit ()
sc::preference: hack commit/apply: exchange dx_assert with dx_pass again