New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes, Meson Updates and Virtual device enabling #43

merged 4 commits into from Oct 7, 2017
Jump to file or symbol
Failed to load files and symbols.
+13 −0
Diff settings


Just for now

Viewing a subset of changes. View all

ctlra: add virtual devices based on environment vars

This allows any user to easily virtualize a device, independent of
the application interface, or features exposed.

Signed-off-by: Harry van Haaren <>
  • Loading branch information...
harryhaaren committed Oct 7, 2017
commit c03204af48c16e878749e5878e5f54789b00d9ee
@@ -375,6 +375,19 @@ int ctlra_probe(struct ctlra_t *ctlra,
num_accepted += ctlra_impl_accept_dev(ctlra, i);
/* virtualize device from ENV variable */
char *virt_vendor = getenv("CTLRA_VIRTUAL_VENDOR");
char *virt_device = getenv("CTLRA_VIRTUAL_DEVICE");
if(virt_vendor && virt_device) {
int32_t ret = ctlra_dev_virtualize(ctlra,
/* could flag error, but dev_virtualize() already does */
(void) ret;
/* increment if the device was virtualized successfully */
num_accepted += (ret == 0);
return num_accepted;
ProTip! Use n and p to navigate between commits in a pull request.