[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 0/9] UK Ctors, Init: API clean-up and depending priorities



This patch series tries to achieve two goals:
 1) Bringing the style of the Unikraft constructors API (<uk/ctors.h>)
    and Unikraft Init functions API (<uk/init.h>) close together.
    Same concepts for naming and parameter orders are applied.
 2) Providing a way for defining depending priorities: Both headers use
    macros for doing the registration but priority levels can't be
    computed with standard C arithmetic operations. A new header <uk/prio.h>
    is provided to enable priority level calculation at pre-processor stage.

Simon Kuenzer (9):
  include: uk_ctortab: Provide 10 priority levels
  include: Clean-ups to <uk/ctors.h>
  include: Clean-ups to <uk/init.h>
  include: Introduce <uk/prio.h>
  include: <uk/init.h>: Macros for init classes
  lib/ukbus: Update to <uk/ctors.h> changes
  lib/ukswrand: Update to <uk/ctors.h> changes
  lib/vfscore: Update to <uk/ctors.h> changes
  plat/*: Update to <uk/ctors.h> changes

 include/uk/ctors.h                            | 62 ++++++++-----
 include/uk/init.h                             | 91 ++++++++++++++-----
 include/uk/prio.h                             | 82 +++++++++++++++++
 lib/ukboot/boot.c                             | 62 +++++++------
 lib/ukbus/bus.c                               |  2 +-
 lib/ukbus/include/uk/bus.h                    |  9 +-
 lib/uklibparam/include/uk/libparam.h          |  2 +-
 lib/ukswrand/swrand.c                         |  2 +-
 lib/vfscore/fd.c                              |  2 +-
 lib/vfscore/main.c                            |  2 +-
 plat/common/include/pci/pci_bus.h             |  4 +-
 .../include/uk/plat/common/common.lds.h       |  6 +-
 plat/drivers/include/virtio/virtio_bus.h      |  4 +-
 plat/xen/include/xenbus/xenbus.h              |  4 +-
 14 files changed, 242 insertions(+), 92 deletions(-)
 create mode 100644 include/uk/prio.h

-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.