All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] More wrappers for xenlight Go package
@ 2020-05-13  0:55 Nick Rosbrook
  2020-05-13  0:55 ` [PATCH v3 1/1] golang/xenlight: add NameToDomid and DomidToName util functions Nick Rosbrook
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Rosbrook @ 2020-05-13  0:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Nick Rosbrook, Ian Jackson, George Dunlap, Wei Liu

This series adds wrappers to the xenlight package for various libxl
functions, which are now trivial to add with the generated types and 
marshaling helpers. In particular, these are functions that would allow
redctl to begin making the transition to using the xenlight package. For 
reference, I have started an experimental branch where I am using these
functions in redctl [1].

[1] https://gitlab.com/enr0n/redctl/-/blob/1bdf7b515654cc030e095f3a630a24530f930c00/internal/server/xenlight_xen_driver.go

Changes in v2:
 - Define constant DomidInvalid in first patch for use in NameToDomid
 - Add more detail to function comments

Changes in v3:
 - Define INVALID_DOMID_TYPED in C preamble so that the Go const
   DomidInvalid is always in-sync with the libxl definition.

Nick Rosbrook (1):
  golang/xenlight: add NameToDomid and DomidToName util functions

 tools/golang/xenlight/xenlight.go | 40 ++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-13 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13  0:55 [PATCH v3 0/1] More wrappers for xenlight Go package Nick Rosbrook
2020-05-13  0:55 ` [PATCH v3 1/1] golang/xenlight: add NameToDomid and DomidToName util functions Nick Rosbrook
2020-05-13 10:15   ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.