1 Star 0 Fork 0

杨宇昊 / go-udev

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
util.go 251 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jochen Van Guyse 提交于 2015-11-17 16:16 . Cleaning up godoc
// +build linux,cgo
package udev
/*
#cgo LDFLAGS: -ludev
#include <libudev.h>
#include <linux/types.h>
#include <stdlib.h>
#include <linux/kdev_t.h>
*/
import "C"
import "unsafe"
func freeCharPtr(s *C.char) {
C.free(unsafe.Pointer(s))
}
Go
1
https://gitee.com/yang_yuhao12138/go-udev.git
git@gitee.com:yang_yuhao12138/go-udev.git
yang_yuhao12138
go-udev
go-udev
8195ba154ee4

搜索帮助

53164aa7 5694891 3bd8fe86 5694891