-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocaml-evtchn: Split lwt-dependent and independent code into two separ…
…ate modules Signed-off-by: Andrii Sultanov <[email protected]>
- Loading branch information
1 parent
32132ea
commit 11ff051
Showing
8 changed files
with
144 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,56 @@ | ||
(lang dune 1.0) | ||
(lang dune 3.15) | ||
(name xen-evtchn) | ||
|
||
(generate_opam_files true) | ||
|
||
(maintainers "[email protected]") | ||
(homepage "https://github.com/mirage/ocaml-evtchn") | ||
(source (github mirage/ocaml-evtchn)) | ||
|
||
(package | ||
(name xen-evtchn) | ||
(authors "Vincent Hanquez" "Anil Madhavapeddy" "David Scott" "Jonathan Ludlam") | ||
(tags ("org:mirage" "org:xapi-project")) | ||
(synopsis "Xen event channel interface for MirageOS") | ||
(description " | ||
Event channels are the Xen equivalent of interrupts, used to signal | ||
when data (or space) is available for processing. There are 2 distinct | ||
implementations: | ||
1. a Xen shared-memory + hypercall protocol for kernelspace | ||
2. a binding to a set of libxc functions which access /dev/xen/evtchn | ||
for userspace (see `xen-evtchn-unix` opam package)." | ||
) | ||
(depends | ||
(ocaml (>= 4.03.0)) | ||
dune | ||
lwt | ||
lwt-dllist | ||
cmdliner | ||
) | ||
) | ||
|
||
(package | ||
(name xen-evtchn-unix) | ||
(authors "Vincent Hanquez" "Anil Madhavapeddy" "David Scott" "Jonathan Ludlam") | ||
(tags ("org:mirage" "org:xapi-project")) | ||
(synopsis "Xen event channel interface for Linux") | ||
(depends | ||
(ocaml (>= 4.03.0)) | ||
dune | ||
(xen-evtchn (>= 2.0.0)) | ||
lwt-dllist | ||
lwt | ||
cmdliner | ||
(ounit2 :with-test) | ||
(conf-xen :build) | ||
)) | ||
|
||
(package | ||
(name xen-evtchn-unix-minimal) | ||
(tags ("org:mirage" "org:xapi-project")) | ||
(synopsis "Xen event channel interface for Linux, without Lwt dependencies") | ||
(depends | ||
dune | ||
(xen-evtchn (>= 2.0.0)) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
external fd: Eventchn.handle -> Unix.file_descr = "stub_evtchn_fd" | ||
external pending: Eventchn.handle -> Eventchn.t = "stub_evtchn_pending" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "Xen event channel interface for Linux, without Lwt dependencies" | ||
maintainer: ["[email protected]"] | ||
tags: ["org:mirage" "org:xapi-project"] | ||
homepage: "https://github.com/mirage/ocaml-evtchn" | ||
bug-reports: "https://github.com/mirage/ocaml-evtchn/issues" | ||
depends: [ | ||
"dune" {>= "3.15"} | ||
"xen-evtchn" {>= "2.0.0"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/ocaml-evtchn.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
synopsis: "Xen event channel interface for Linux" | ||
maintainer: ["[email protected]"] | ||
authors: [ | ||
"Vincent Hanquez" "Anil Madhavapeddy" "David Scott" "Jonathan Ludlam" | ||
] | ||
tags: ["org:mirage" "org:xapi-project"] | ||
homepage: "https://github.com/mirage/ocaml-evtchn" | ||
bug-reports: "https://github.com/mirage/ocaml-evtchn/issues" | ||
doc: "https://mirage.github.io/ocaml-evtchn/" | ||
depends: [ | ||
"ocaml" {>= "4.03.0"} | ||
"dune" {>= "1.0"} | ||
"xen-evtchn" {>="2.0.0"} | ||
"dune" {>= "3.15"} | ||
"xen-evtchn" {>= "2.0.0"} | ||
"lwt-dllist" | ||
"lwt" | ||
"cmdliner" | ||
"ounit2" {with-test} | ||
"conf-xen" {build} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/ocaml-evtchn.git" | ||
synopsis: "Xen event channel interface for Linux" | ||
description: """ | ||
Event channels are the Xen equivalent of interrupts, used to signal | ||
when data (or space) is available for processing. This implementation | ||
is a binding to a set of libxc functions which access `/dev/xen/evtchn` | ||
for userspace. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
synopsis: "Xen event channel interface for MirageOS" | ||
description: """ | ||
|
||
Event channels are the Xen equivalent of interrupts, used to signal | ||
when data (or space) is available for processing. There are 2 distinct | ||
implementations: | ||
|
||
1. a Xen shared-memory + hypercall protocol for kernelspace | ||
2. a binding to a set of libxc functions which access /dev/xen/evtchn | ||
for userspace (see `xen-evtchn-unix` opam package).""" | ||
maintainer: ["[email protected]"] | ||
authors: [ | ||
"Vincent Hanquez" "Anil Madhavapeddy" "David Scott" "Jonathan Ludlam" | ||
] | ||
tags: ["org:mirage" "org:xapi-project"] | ||
homepage: "https://github.com/mirage/ocaml-evtchn" | ||
doc: "https://mirage.github.io/ocaml-evtchn/" | ||
bug-reports: "https://github.com/mirage/ocaml-evtchn/issues" | ||
depends: [ | ||
"ocaml" {>= "4.03.0"} | ||
"dune" {>= "1.0"} | ||
"dune" {>= "3.15"} | ||
"lwt" | ||
"lwt-dllist" | ||
"cmdliner" | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/mirage/ocaml-evtchn.git" | ||
synopsis: "Xen event channel interface for MirageOS" | ||
description: """ | ||
Event channels are the Xen equivalent of interrupts, used to signal | ||
when data (or space) is available for processing. There are 2 distinct | ||
implementations: | ||
|
||
1. a Xen shared-memory + hypercall protocol for kernelspace | ||
2. a binding to a set of libxc functions which access /dev/xen/evtchn | ||
for userspace (see `xen-evtchn-unix` opam package). | ||
""" |