Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate kqueue bindings #4

Open
4 tasks
leostera opened this issue Feb 28, 2024 · 0 comments
Open
4 tasks

Generate kqueue bindings #4

leostera opened this issue Feb 28, 2024 · 0 comments
Milestone

Comments

@leostera
Copy link
Contributor

One of the first interesting goals for ocaml-bidngen is to generate bindings for the kqueue set of syscalls, so we can drop the custom C code we have in gluon.

At minimum we need a module that implements these:

  • Creating a new kqueue instance: kqueue : unit -> kqueue
  • Polling for events on a kqueue instance: kevent : max_events:int -> timeout:int64 -> kqueue -> event array
  • Updating the kqueue instance: fcntl : Fd.t -> cmd:int -> arg:int -> int
  • Registering events of interest: kevent_register : kqueue -> event array -> int array -> unit

The current custom C code for this lives here.

@leostera leostera added this to the riot/phase-1 milestone Feb 28, 2024
@leostera leostera mentioned this issue Feb 28, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant