search for: ctxts

Displaying 9 results from an estimated 9 matches for "ctxts".

Did you mean: ctxt
2019 Jun 27
3
[libnbd PATCH] generator: Add support for namespace constants
...ot;#define LIBNBD_CONTEXT_%s_%s \"%s:%s\"\n" + ns_upper ctxt_upper ns ctxt; + pr "\n"; + pr "/* \"%s:%s\" context related constants */\n" ns ctxt; + List.iter (fun (n, i) -> pr "#define LIBNBD_%-30s %d\n" n i) consts + +let print_ns ns ctxts = + let ns_upper = String.uppercase_ascii ns in + pr "/* \"%s\" namespace */\n" ns; + pr "#define LIBNBD_NAMESPACE_%s \"%s\"\n" ns_upper ns; + pr "\n"; + pr "/* \"%s\" namespace contexts */\n" ns; + List.iter ( + fun (ct...
2019 Jun 27
0
Re: [libnbd PATCH] generator: Add support for namespace constants
...E<gt>> contains constants +beginning with C<LIBNBD_STATE_> that may help decipher the values. It is possible for the extent function to be called more times than you expect (if the server is buggy), @@ -2926,7 +2934,7 @@ let print_ns_ctxt ns ns_upper ctxt consts = let print_ns ns ctxts = let ns_upper = String.uppercase_ascii ns in pr "/* \"%s\" namespace */\n" ns; - pr "#define LIBNBD_NAMESPACE_%s \"%s\"\n" ns_upper ns; + pr "#define LIBNBD_NAMESPACE_%s \"%s:\"\n" ns_upper ns; pr "\n"; pr "/*...
2015 Jan 24
0
[ANNOUNCE] xorg-server 1.16.99.902
...e glamor_purge_fbo static glamor: Make sure Xvideo source image data is properly aligned Michele Baldessari (2): ephyr: Implement per-screen colormaps ephyr: Implement per-screen colormaps Neil Roberts (1): glx: Add implementation of __GLXContext->loseCurrent for direct ctxts Olivier Fourdan (3): Remove explicit dependency on $(WAYLAND_LIBS) Fix subwindow in Xi emulated events Synchronize capslock in Xnest and Xephyr Peter Harris (1): Fix overflow of ConnectionOutput->size and ->count Peter Hutterer (13): include: fix compiler warn...
2019 Aug 09
0
[PATCH libnbd 2/2] generator: Change handling of Flags to be a true optional argument.
...nbd_h () = pr "\n"; print_closure_typedefs (); List.iter ( - fun (name, { args; ret }) -> print_extern_and_define name args ret + fun (name, { args; optargs; ret }) -> + print_extern_and_define name args optargs ret ) handle_calls; List.iter ( fun (ns, ctxts) -> print_ns ns ctxts @@ -3529,8 +3544,8 @@ let generate_lib_unlocked_h () = pr "#define LIBNBD_UNLOCKED_H\n"; pr "\n"; List.iter ( - fun (name, { args; ret }) -> - print_extern ("unlocked_" ^ name) args ret + fun (name, { args; optargs; ret }...
2019 Aug 10
0
[PATCH libnbd 2/9] generator: Generalize OFlags.
...fun (flag, i) -> + let flag = sprintf "%s_%s" flag_prefix flag in + pr "%-30s = %d\n" flag i + ) flags; + pr "\n" + ) all_flags; List.iter (fun (n, i) -> pr "%-30s = %d\n" n i) constants; List.iter ( fun (ns, ctxts) -> @@ -4545,7 +4578,7 @@ class NBD (object): let optargs = List.map ( function - | OFlags n -> n, "0" + | OFlags (n, _) -> n, "0" ) optargs in let () = let params = args @ List.map (fun (n, def) -&gt...
2020 Mar 24
1
[PATCH libnbd v3] Add Go language bindings (golang) (RHBZ#1814538).
This feature is roughly finished now, although it needs a few more tests and some examples. It's pretty much up to par with all the other bindings, but it lacks a completely safe AIO buffer. It won't stop you from freeing the buffer too early) because golang's GC inexplicably lacks a way to declare a root from C. I can probably do it with a global variable and ref counting on the
2019 Aug 09
4
[PATCH libnbd 0/2] generator: Preparatory changes to the generator.
These are some simplifications to the generator. They don't probably make much sense on their own, but they are preparatory to better handling of enums, and or'd lists of flags. Rich.
2020 Mar 25
3
[PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
Now runs a complete set of tests, notably including the AIO test. File descriptors are passed in and out as plain ints (instead of *os.File) for a couple of reasons: (1) We have to pass the plain int to syscall.Select. (2) Turning an fd into an os.File causes golang to set the blocking flag which is deeply unhelpful. Rich.
2019 Aug 10
17
[PATCH libnbd 0/9] Add Enum and Flags types.
This largish series adds several new features to the generator. Enum maps to enumerated types (like enum in C). The only current use for this is replacing the nbd_set_tls (nbd, 0/1/2) parameter with LIBNBD_TLS_DISABLE, LIBNBD_TLS_ALLOW, LIBNBD_TLS_REQUIRE (and natural equivalents in other programming languages). Flags maps to any uint32_t bitmask. It is basically a non-optional, generalized