- Notifications
You must be signed in to change notification settings - Fork15
Go io uring syscall implementation without CGO, rewrite on branch v0.4
License
NotificationsYou must be signed in to change notification settings
ii64/gouring
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
go get github.com/ii64/gouring
// setuph,err:=gouring.New(256,0)iferr!=nil {/*...*/ }deferh.Close()sqe:=h.GetSQE()b:= []byte("io_uring!\n")PrepWrite(sqe,1,&b[0],len(b),0)submitted,err:=h.SubmitAndWait(1)iferr!=nil {/*...*/ }println(submitted)// 1varcqe*gouring.IoUringCqeerr=h.WaitCqe(&cqe)iferr!=nil {/*...*/ }// check also EINTR_=cqe.UserData_=cqe.Res_=cqe.Flags
SQPOLL | non-SQPOLL |
---|---|
About
Go io uring syscall implementation without CGO, rewrite on branch v0.4
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published