Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread jake6502
k you > > Serguei > > > > > > *From: *> on behalf of " > jake...@gmail.com " > > *Date: *Friday, August 24, 2018 at 12:09 PM > *To: *golang-nuts > > *Subject: *[go-nuts] Re: Ioctl Syscall with go and c > > > > Probably unrelate

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread Ian Lance Taylor
On Sun, Aug 26, 2018 at 6:59 AM, 'Serguei Bezverkhi (sbezverk)' via golang-nuts wrote: > > Ioctl implementation in unix package seems a bit limited, how do you pass > for example a required struct if “func IoctlSetInt(fd int, req uint, value > int)” allows only to accept int?? If this package had

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread 'Serguei Bezverkhi (sbezverk)' via golang-nuts
Serguei From: on behalf of "jake6...@gmail.com" Date: Friday, August 24, 2018 at 12:09 PM To: golang-nuts Subject: [go-nuts] Re: Ioctl Syscall with go and c Probably unrelated to your problem, but IIUC, the syscall package is "deprecated", or "frozen". According

[go-nuts] Re: Ioctl Syscall with go and c

2018-08-24 Thread jake6502
Probably unrelated to your problem, but IIUC, the syscall package is "deprecated", or "frozen". According to the syscall documentation : > *This package is locked down. Code outside the standard Go repository > should be migrated to use the corresponding

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread Tamás Gulácsi
2018. augusztus 23., csütörtök 21:50:54 UTC+2 időpontban sbez...@cisco.com a következőt írta: > > 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

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread 'Serguei Bezverkhi (sbezverk)' via golang-nuts
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,

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread Tamás Gulácsi
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

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread 'Serguei Bezverkhi (sbezverk)' via golang-nuts
uggestions without any success. It is latest Centos 7.5. Thank you Serguei From: on behalf of "jake6...@gmail.com" Date: Thursday, August 23, 2018 at 12:27 PM To: golang-nuts Subject: Re: [go-nuts] Re: Ioctl Syscall with go and c First off, I don't know how you are posting your code

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread jake6502
> } > > return int(device), nil > > } > > > > Any other suggestions? > > Thank you > > Serguei > > > > *From: *> on behalf of Max < > massimilia...@gmail.com > > *Date: *Thursday, August 23, 2018 at 10:46 AM > *To: *

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread 'Serguei Bezverkhi (sbezverk)' via golang-nuts
-nuts] Re: Ioctl Syscall with go and c Is it \0-terminated? 2018. augusztus 23., csütörtök 13:02:13 UTC+2 időpontban sbez...@cisco.com a következőt írta: Hello, I am converting some C code to Go and hit an issue with one particular Syscall: In C: device = ioctl(group, 0x3b6a, path

[go-nuts] Re: Ioctl Syscall with go and c

2018-08-23 Thread Tamás Gulácsi
Is it \0-terminated? 2018. augusztus 23., csütörtök 13:02:13 UTC+2 időpontban sbez...@cisco.com a következőt írta: > > Hello, > > I am converting some C code to Go and hit an issue with one particular > Syscall: > > In C: > > device = ioctl(group, 0x3b6a, path); > where path is