Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/host/tests/irqlayout.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / host / tests / irqlayout.om` 43 lines ยท 861 bytes Raw Blame History 1 om2 2 note Measured against GCC linux/vfio.h sizeof/offsetof oracle. This is wire layout, not an Omega struct. 3 layout IrqInfo 16 4 field argsz uint at 0 little 5 field flags uint at 4 little 6 field index uint at 8 little 7 field count uint at 12 little 8 end 9 layout IrqSet 24 10 field argsz uint at 0 little 11 field flags uint at 4 little 12 field index uint at 8 little 13 field start uint at 12 little 14 field count uint at 16 little 15 field event int at 20 little 16 end 17 fn info b edit IrqInfo to void 18 put b argsz uint 16 19 put b flags uint 3 20 put b index uint 2 21 put b count uint 64 22 end 23 fn setup b edit IrqSet to void 24 put b argsz uint 24 25 put b flags uint 36 26 put b index uint 2 27 put b start uint 3 28 put b count uint 1 29 put b event int -1 30 end 31 fn main to int 32 ib = new uchar 16 0 33 sb = new uchar 24 0 34 info ib 35 setup sb 36 if ne write 1 ib 0 16 16 37 ret 1 38 end 39 if ne write 1 sb 0 24 24 40 ret 2 41 end 42 ret 0 43 end