I copied the whole thing to https://github.com/sbezverk/vfio
Running it without actual vfio/iommu might be problematic though. Before this specific ioctl can be run 2 open calls must succeed. See func main. Thank you for looking into this problem Serguei Sent from my iPhone > On Aug 23, 2018, at 12:49 PM, Tamás Gulácsi <tgulacs...@gmail.com> wrote: > > Cany you give a complete example? > > https://play.golang.org/p/ZQSf-PwMtd9 > > says > > "device=18446744073709551615 errno=inappropriate ioctl for device" > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.