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

[Minios-devel] [UNIKRAFT PATCH 11/22] lib/vfscore: prefix exported functions



Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 lib/vfscore/include/vfscore/mount.h |  4 ++--
 lib/vfscore/include/vfscore/prex.h  |  6 +++---
 lib/vfscore/include/vfscore/uio.h   |  2 +-
 lib/vfscore/include/vfscore/vnode.h | 10 +++++-----
 lib/vfscore/mount.c                 |  9 ++++-----
 lib/vfscore/subr_uio.c              |  2 +-
 lib/vfscore/vfs.h                   |  2 +-
 lib/vfscore/vnode.c                 | 12 ++++++------
 8 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/lib/vfscore/include/vfscore/mount.h 
b/lib/vfscore/include/vfscore/mount.h
index b4a07323..a1227cbe 100644
--- a/lib/vfscore/include/vfscore/mount.h
+++ b/lib/vfscore/include/vfscore/mount.h
@@ -139,12 +139,12 @@ typedef int (*vfsop_statfs_t)(struct mount *, struct 
statfs *);
 
 #define VFS_NULL                   ((void *)vfs_null)
 
-int    vfs_nullop(void);
+int    vfscore_nullop(void);
 int    vfs_einval(void);
 
 void    vfs_busy(struct mount *mp);
 void    vfs_unbusy(struct mount *mp);
 
-void    release_mp_dentries(struct mount *mp);
+void    vfscore_release_mp_dentries(struct mount *mp);
 
 #endif /* !_SYS_MOUNT_H_ */
diff --git a/lib/vfscore/include/vfscore/prex.h 
b/lib/vfscore/include/vfscore/prex.h
index 38b304d3..ff701af0 100644
--- a/lib/vfscore/include/vfscore/prex.h
+++ b/lib/vfscore/include/vfscore/prex.h
@@ -5,8 +5,8 @@
  * BSD license as described in the LICENSE file in the top-level directory.
  */
 
-#ifndef _OSV_PREX_H
-#define _OSV_PREX_H 1
+#ifndef _UK_PREX_H
+#define _UK_PREX_H 1
 
 
 #include <unistd.h>
@@ -24,4 +24,4 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
 
 void sys_panic(const char *);
 
-#endif /* _OSV_PREX_H */
+#endif /* _UK_PREX_H */
diff --git a/lib/vfscore/include/vfscore/uio.h 
b/lib/vfscore/include/vfscore/uio.h
index 8ad1e3fb..c734fa19 100644
--- a/lib/vfscore/include/vfscore/uio.h
+++ b/lib/vfscore/include/vfscore/uio.h
@@ -57,6 +57,6 @@ struct uio {
        enum    uio_rw uio_rw;          /* operation */
 };
 
-int    uiomove(void *cp, int n, struct uio *uio);
+int    vfscore_uiomove(void *cp, int n, struct uio *uio);
 
 #endif /* !_UIO_H_ */
diff --git a/lib/vfscore/include/vfscore/vnode.h 
b/lib/vfscore/include/vfscore/vnode.h
index c5331427..9388185a 100644
--- a/lib/vfscore/include/vfscore/vnode.h
+++ b/lib/vfscore/include/vfscore/vnode.h
@@ -226,10 +226,10 @@ struct vnops {
 #define VOP_READLINK(VP, U)        ((VP)->v_op->vop_readlink)(VP, U)
 #define VOP_SYMLINK(DVP, OP, NP)   ((DVP)->v_op->vop_symlink)(DVP, OP, NP)
 
-int     vop_nullop(void);
-int     vop_einval(void);
-int     vop_eperm(void);
-int     vop_erofs(void);
+int     vfscore_vop_nullop(void);
+int     vfscore_vop_einval(void);
+int     vfscore_vop_eperm(void);
+int     vfscore_vop_erofs(void);
 struct vnode *vn_lookup(struct mount *, uint64_t);
 void    vn_lock(struct vnode *);
 void    vn_unlock(struct vnode *);
@@ -237,7 +237,7 @@ int  vn_stat(struct vnode *, struct stat *);
 int     vn_settimes(struct vnode *, struct timespec[2]);
 int     vn_setmode(struct vnode *, mode_t mode);
 int     vn_access(struct vnode *, int);
-int     vget(struct mount *, uint64_t ino, struct vnode **vpp);
+int     vfscore_vget(struct mount *, uint64_t ino, struct vnode **vpp);
 void    vput(struct vnode *);
 void    vref(struct vnode *);
 void    vrele(struct vnode *);
diff --git a/lib/vfscore/mount.c b/lib/vfscore/mount.c
index 9158b5d9..fb18e04a 100644
--- a/lib/vfscore/mount.c
+++ b/lib/vfscore/mount.c
@@ -239,7 +239,7 @@ sys_mount(const char *dev, const char *dir, const char 
*fsname, int flags, const
 }
 
 void
-release_mp_dentries(struct mount *mp)
+vfscore_release_mp_dentries(struct mount *mp)
 {
        /* Decrement referece count of root vnode */
        if (mp->m_covered) {
@@ -463,8 +463,7 @@ vfs_unbusy(struct mount *mp)
        ukarch_dec(&mp->m_count);
 }
 
-int
-vfs_nullop(void)
+int vfscore_nullop(void)
 {
        return 0;
 }
@@ -477,12 +476,12 @@ vfs_einval(void)
 
 #ifdef DEBUG_VFS
 void
-mount_dump(void)
+vfscore_mount_dump(void)
 {
        struct mount *mp;
        uk_mutex_lock(&mount_lock);
 
-       uk_pr_debug("mount_dump\n");
+       uk_pr_debug("vfscore_mount_dump\n");
        uk_pr_debug("dev      count root\n");
        uk_pr_debug("-------- ----- --------\n");
 
diff --git a/lib/vfscore/subr_uio.c b/lib/vfscore/subr_uio.c
index 3377ac12..c0c7fb78 100644
--- a/lib/vfscore/subr_uio.c
+++ b/lib/vfscore/subr_uio.c
@@ -41,7 +41,7 @@
 #include <vfscore/uio.h>
 
 int
-uiomove(void *cp, int n, struct uio *uio)
+vfscore_uiomove(void *cp, int n, struct uio *uio)
 {
        UK_ASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE);
 
diff --git a/lib/vfscore/vfs.h b/lib/vfscore/vfs.h
index 60bb9113..32330687 100644
--- a/lib/vfscore/vfs.h
+++ b/lib/vfscore/vfs.h
@@ -145,7 +145,7 @@ void dentry_init(void);
 
 #ifdef DEBUG_VFS
 void    vnode_dump(void);
-void    mount_dump(void);
+void    vfscore_mount_dump(void);
 #endif
 
 static void __attribute__((unused)) uk_vfscore_trace(int foo __unused, ...)
diff --git a/lib/vfscore/vnode.c b/lib/vfscore/vnode.c
index ee4b2597..f4c94bb8 100644
--- a/lib/vfscore/vnode.c
+++ b/lib/vfscore/vnode.c
@@ -63,7 +63,7 @@ int vttoif_tab[10] = {
  * ---------- --------- ----------
  * vn_lock     *        Lock
  * vn_unlock   *        Unlock
- * vget        1        Lock
+ * vfscore_vget        1        Lock
  * vput       -1        Unlock
  * vref       +1        *
  * vrele      -1        *
@@ -169,7 +169,7 @@ vn_unlock(struct vnode *vp)
  * Returns 1 if vnode was found in cache; otherwise returns 0.
  */
 int
-vget(struct mount *mp, uint64_t ino, struct vnode **vpp)
+vfscore_vget(struct mount *mp, uint64_t ino, struct vnode **vpp)
 {
        struct vnode *vp;
        int error;
@@ -473,25 +473,25 @@ vnode_dump(void)
 #endif
 
 int
-vop_nullop(void)
+vfscore_vop_nullop(void)
 {
        return 0;
 }
 
 int
-vop_einval(void)
+vfscore_vop_einval(void)
 {
        return EINVAL;
 }
 
 int
-vop_eperm(void)
+vfscore_vop_eperm(void)
 {
        return EPERM;
 }
 
 int
-vop_erofs(void)
+vfscore_vop_erofs(void)
 {
        return EROFS;
 }
-- 
2.19.2


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