Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MITGo Reference

go get github.com/ii64/gouring

Example

// 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

Graph

SQPOLLnon-SQPOLL
sqpoll_fignonsqpoll_fig

Reference

https://github.com/axboe/liburing

About

Go io uring syscall implementation without CGO, rewrite on branch v0.4

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp