[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v3 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. Changes v2: - Use assertions to check there are no NULL pointers within .uk_ctortab and .uk_inittab - Remove library name from generated variable name used for populating .uk_ctortab and .uk_inittab entries Changes v3: - Fixed the argument order to UK_CTOR_PRIO() within the bus drivers 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 | 58 ++++++------ 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 | 5 +- plat/xen/include/xenbus/xenbus.h | 4 +- 14 files changed, 239 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |