When I'm having one Host application running with exclusive access (in this case tapasco-debug in Debug Mode) and then start another runtime application which tries to acquire exclusive access to the same device this results in the following errors in the first two attempts but then from the third attempt on it succeeds.
$ cargo run --
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/tapasco_runtime`
An error occurred: Failed to initialize TLKM object: Could not create device: DMA Error: Could not allocate DMA buffer EMFILE: Too many open files
$ cargo run --
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Running `target/debug/tapasco_runtime`
An error occurred: Failed to decode TLKM device: Could not acquire desired mode TlkmAccessExclusive for device 0: EBUSY: Device or resource busy
$ cargo run --
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Running `target/debug/tapasco_runtime`
The first error comes from libtapasco allocating all 32 DMA Buffers from TLKM at initialization time which also happens only once.
When I'm having one Host application running with exclusive access (in this case tapasco-debug in Debug Mode) and then start another runtime application which tries to acquire exclusive access to the same device this results in the following errors in the first two attempts but then from the third attempt on it succeeds.
The first error comes from
libtapascoallocating all 32 DMA Buffers from TLKM at initialization time which also happens only once.