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

[Minios-devel] [UNIKRAFT PATCH v4 0/5] Import devfs from OSv



This patch series is similar to the ramfs one.
Since devfs had almost no C++ code the codesbase
is only slightly modified.

Changes from v1:
*) Merged the "lib/vfscore: Import device.h from OSv" commit with "lib/devfs:
Initial import from OSv" and moved device.h in devfs/include
*) Removed the ASSERT(e) declaration
*) Replaced the commented release_mp_dentries call to
vfscore_release_mp_dentries
*) Removed the vop_erofs and vfs_nullop since they are either replaced or not
used
*) Added the CONFIG_DEVFS_USE_RAMFS guard constructor to guard the automount of
ramfs, it is by default set to n
*) Added config option for CONFIG_DEVFS_USE_RAMFS
*) Uncommented the device_lookup(name) check 
*) Added the proposed solution to the possible race condition
while destroying a device
*) Removed the u_long typedef
*) Changed the DPRINTF macro to uk_pr_debug(X)
*) Removed the negative return values
*) Added macros for file modes
*) Updated the license to University Politehnica of Bucharest

Changes from v2:
*) removed physio and multiplex_strategy declarations from device.h
*) fix checkpath warning/errors in device.h and the device.c
*) Added device_destroy_locked implementation and declaration
*) device_reference now calls device_locked to reduce the amount of duplicate
code
*) Added missing unlock in device_open

Changes from v3:
*) Removed the DPRINTF macro, now we use uk_pr_debug directly
*) Add symbols to exportsyms.uk
*) moved device.h to include/devfs/device.h
*) In devfs_lookup the vp->v_flag is not initialized to 0

Vlad-Andrei BĂDOIU (78692) (5):
  lib/devfs: Initial import from OSv
  lib/devfs: Adapt imported devfs to Unikraft
  lib/devfs: Tabify imported devfs code
  lib/devfs: Fix checkpath warnings
  lib/devfs: Update license header for the imported files

 lib/Config.uk                    |   1 +
 lib/Makefile.uk                  |   1 +
 lib/devfs/Config.uk              |  10 +
 lib/devfs/Makefile.uk            |   6 +
 lib/devfs/devfs.h                |  40 +++
 lib/devfs/devfs_vnops.c          | 336 ++++++++++++++++++++++++
 lib/devfs/device.c               | 435 +++++++++++++++++++++++++++++++
 lib/devfs/exportsyms.uk          |   6 +
 lib/devfs/include/devfs/device.h | 211 +++++++++++++++
 9 files changed, 1046 insertions(+)
 create mode 100644 lib/devfs/Config.uk
 create mode 100644 lib/devfs/Makefile.uk
 create mode 100644 lib/devfs/devfs.h
 create mode 100644 lib/devfs/devfs_vnops.c
 create mode 100644 lib/devfs/device.c
 create mode 100644 lib/devfs/exportsyms.uk
 create mode 100644 lib/devfs/include/devfs/device.h

-- 
2.21.0

_______________________________________________
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®.