GithubHelp home page GithubHelp logo

bgamari / io-uring Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 2.0 53 KB

A simple set of io-uring bindings in Haskell

License: BSD 3-Clause "New" or "Revised" License

Haskell 76.36% Makefile 0.66% C++ 11.91% C 11.08%

io-uring's Introduction

io-uring

A simple set of io-uring bindings in Haskell. See Main.hs for an example on how to use it. The example code can be run with cabal run.

Requirements

Since the io_uring interface was only added to the Linux kernel in version 5.1 (released around May 2019) so it's possible that you are running a kernel version that supports it. From the command line, uname -r will tell you the kernel version of your system.

Warning

It is NOT advised to cabal install --lib this repo to get the libraries installed as non-hidden modules. Part of the bindings include C-- code that prevents the GHCi bytecode interpreter from even starting up.

io-uring's People

Contributors

bgamari avatar wjwh avatar

Stargazers

 avatar Joshua Passos avatar Mango The Fourth avatar Tim Kersey avatar Steven Shaw avatar Ethan Kiang avatar Valentin Banshchikov avatar Matthew Wraith avatar Florian Klein avatar Vincent Andrada avatar Vincent Andrada avatar Andrejs Agejevs avatar timothy avatar  avatar Dmitrii Dolgov avatar Hoang Phan avatar  avatar Romain Ruetschi avatar xmonader avatar Stephen Diehl avatar Scott Fleischman avatar Amir M. Saeid avatar Jonathan Fischoff avatar Mitsutoshi Aoe avatar  avatar Poscat avatar Mitchell Dalvi Rosen avatar

Watchers

Raymond Tay avatar James Cloos avatar  avatar Mitchell Dalvi Rosen avatar  avatar

Forkers

wjwh zyklotomic

io-uring's Issues

Clean way to free Uring

Maybe I misunderstand how it works, but there does not seem to be a clean way to close the Uring from Haskell land. There is the uringFptr in the URing data structure that is a ForeignPtr HsURing coming from c_free_uring but I don't really understand how to use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.