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

[Minios-devel] [UNIKRAFT PATCH v2 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

Vlad-Andrei Badoiu (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      |   4 +
 lib/devfs/devfs.h          |  40 ++++
 lib/devfs/devfs_vnops.c    | 337 ++++++++++++++++++++++++++++++
 lib/devfs/device.c         | 418 +++++++++++++++++++++++++++++++++++++
 lib/devfs/include/device.h | 211 +++++++++++++++++++
 8 files changed, 1022 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/include/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®.