aboutsummaryrefslogtreecommitdiff
path: root/samples
AgeCommit message (Collapse)AuthorFilesLines
2019-11-02Add missing headersFelipe Franciosi1-0/+33
Several files were missing license headers. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
2019-11-02Fix various format issuesFelipe Franciosi1-1/+1
Remove various spurious whitespaces and empty lines. Some other alignment issues, too. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
2019-10-03samples: make test_read slightly more verboseFelipe Franciosi1-1/+2
This helped in debugging the recent config breakage.
2019-09-20add license header to files related to Python bindingsThanos Makatos1-0/+29
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-20experimental support for Python bindings plus sampleThanos Makatos1-0/+8
This patch introduces experimental support for Python bindings, plus the GPIO sample in Python. There are many issues with extending Python (from module stuff to error handling), the most important one is the inability to modify the buf argument to the region access callbacks when a region is read from. For now I've resorted to returning the value since in libmuser we limit accesses to 8 bytes (maybe we should consider that for the C API as well?). Also, the fact that we don't pass the region being accessed as an argument to a region access callback results in clunky code (see the REGION_WRAP macro). Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05introduce gpio sampleThanos Makatos2-0/+40
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05sample/test_read: add test for sparse mmap capSwapnil Ingle1-13/+43
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2019-09-05Initial commitFelipe Franciosi3-0/+464