Skip to content

cyberxnomad/giochelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golang ioc helper

linux ioctl 命令参数构造辅助,用于补充 golang.org/x/sys unix 中的缺失。

用例

// ...
arg := 0x12345678
cmd := giochelper.IoW('x', 0, 4)
unix.IoctlSetPointerInt(fd, cmd, arg)
// ...

参考

  1. IOCTLs
  2. ioctl.h

About

golang ioc helper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages