当前位置: 首页>>代码示例>>C++>>正文


C++ NOT_YET_IMPLEMENTED函数代码示例

本文整理汇总了C++中NOT_YET_IMPLEMENTED函数的典型用法代码示例。如果您正苦于以下问题:C++ NOT_YET_IMPLEMENTED函数的具体用法?C++ NOT_YET_IMPLEMENTED怎么用?C++ NOT_YET_IMPLEMENTED使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了NOT_YET_IMPLEMENTED函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: s5fs_delete_vnode

/*
 * See the comment in vfs.h for what is expected of this function.
 *
 * When this function returns, the inode refcount should be decremented.
 *
 * You probably want to use s5_free_inode() if there are no more links to
 * the inode, and dont forget to unpin the page
 */
static void
s5fs_delete_vnode(vnode_t *vnode)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_delete_vnode");
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:13,代码来源:s5fs.c

示例2: range_perm

/*
 * range_perm is essentially a version of addr_perm that checks an entire
 * range of addresses (from avaddr to avaddr+len).  Though you will
 * probably want to use your addr_perm() function in your implementation of
 * range_perm, you don't need to check every possible address.  Remember
 * that page protections have, as the name suggests, page granularity.
 * Like addr_perm, this function should return 1 if the range is valid for
 * the given permissions, and 0 otherwise.
 */
int range_perm(struct proc *p, const void *avaddr, size_t len, int perm) {
  NOT_YET_IMPLEMENTED("VM: ***none***");
  return 0;
}
开发者ID:acconsta,项目名称:Weenix,代码行数:13,代码来源:access.c

示例3: do_mount

/*
 * Implementing this function is not required and strongly discouraged unless
 * you are absolutely sure your Weenix is perfect.
 *
 * This is the syscall entry point into vfs for mounting. You will need to
 * create the fs_t struct and populate its fs_dev and fs_type fields before
 * calling vfs's mountfunc(). mountfunc() will use the fields you populated
 * in order to determine which underlying filesystem's mount function should
 * be run, then it will finish setting up the fs_t struct. At this point you
 * have a fully functioning file system, however it is not mounted on the
 * virtual file system, you will need to call vfs_mount to do this.
 *
 * There are lots of things which can go wrong here. Make sure you have good
 * error handling. Remember the fs_dev and fs_type buffers have limited size
 * so you should not write arbitrary length strings to them.
 */
int
do_mount(const char *source, const char *target, const char *type)
{
        NOT_YET_IMPLEMENTED("MOUNTING: do_mount");
        return -EINVAL;
}
开发者ID:rvsharath91,项目名称:Projects,代码行数:22,代码来源:vfs_syscall.c

示例4: s5_link

/*
 * Create a new directory entry in directory 'parent' with the given name, which
 * refers to the same file as 'child'.
 *
 * When this function returns, the inode refcount on the file that was linked to
 * should be incremented.
 *
 * Remember to incrament the ref counts appropriately
 *
 * You probably want to use s5_find_dirent(), s5_write_file(), and s5_dirty_inode().
 */
int
s5_link(vnode_t *parent, vnode_t *child, const char *name, size_t namelen)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_link");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:17,代码来源:s5fs_subr.c

示例5: s5_seek_to_block

/*
 * Return the disk-block number for the given seek pointer (aka file
 * position).
 *
 * If the seek pointer refers to a sparse block, and alloc is false,
 * then return 0. If the seek pointer refers to a sparse block, and
 * alloc is true, then allocate a new disk block (and make the inode
 * point to it) and return it.
 *
 * Be sure to handle indirect blocks!
 *
 * If there is an error, return -errno.
 *
 * You probably want to use pframe_get, pframe_pin, pframe_unpin, pframe_dirty.
 */
int
s5_seek_to_block(vnode_t *vnode, off_t seekptr, int alloc)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_seek_to_block");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:21,代码来源:s5fs_subr.c

示例6: s5_write_file

/*
 * Write len bytes to the given inode, starting at seek bytes from the
 * beginning of the inode. On success, return the number of bytes
 * actually written (which should be 'len', unless there's only enough
 * room for a partial write); on failure, return -errno.
 *
 * This function should allow writing to files or directories, treating
 * them identically.
 *
 * Writing to a sparse block of the file should cause that block to be
 * allocated.  Writing past the end of the file should increase the size
 * of the file. Blocks between the end and where you start writing will
 * be sparse.
 *
 * Do not call s5_seek_to_block() directly from this function.  You will
 * use the vnode's pframe functions, which will eventually result in a
 * call to s5_seek_to_block().
 *
 * You will need pframe_dirty(), pframe_get(), memcpy().
 */
int
s5_write_file(vnode_t *vnode, off_t seek, const char *bytes, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_write_file");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:26,代码来源:s5fs_subr.c

示例7: s5_alloc_block

/*
 * Allocate a new disk-block off the block free list and return it. If
 * there are no free blocks, return -ENOSPC.
 *
 * This will not initialize the contents of an allocated block; these
 * contents are undefined.
 *
 * If the super block's s5s_nfree is 0, you need to refill 
 * s5s_free_blocks and reset s5s_nfree.  You need to read the contents 
 * of this page using the pframe system in order to obtain the next set of
 * free block numbers.
 *
 * Don't forget to dirty the appropriate blocks!
 *
 * You'll probably want to use lock_s5(), unlock_s5(), pframe_get(),
 * and s5_dirty_super()
 */
static int
s5_alloc_block(s5fs_t *fs)
{
        NOT_YET_IMPLEMENTED("S5FS: s5_alloc_block");
        return -1;
}
开发者ID:Sherry-Shi,项目名称:operating-system,代码行数:23,代码来源:s5fs_subr.c

示例8: s5fs_lookup

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * You probably want to use s5_find_dirent() and vget().
 */
int
s5fs_lookup(vnode_t *base, const char *name, size_t namelen, vnode_t **result)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_lookup");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:11,代码来源:s5fs.c

示例9: s5fs_unlink

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * When this function returns, the inode refcount of the unlinked file
 * should be decremented.
 *
 * You probably want to use s5_remove_dirent().
 */
static int
s5fs_unlink(vnode_t *dir, const char *name, size_t namelen)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_unlink");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c

示例10: s5fs_create

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * When this function returns, the inode refcount of the file should be 2
 * and the vnode refcount should be 1.
 *
 * You probably want to use s5_alloc_inode(), s5_link(), and vget().
 */
static int
s5fs_create(vnode_t *dir, const char *name, size_t namelen, vnode_t **result)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_create");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c

示例11: s5fs_mknod

/*
 * See the comment in vnode.h for what is expected of this function.
 *
 * This function is similar to s5fs_create, but it creates a special
 * file specified by 'devid'.
 *
 * You probably want to use s5_alloc_inode, s5_link(), vget(), and vput().
 */
static int
s5fs_mknod(vnode_t *dir, const char *name, size_t namelen, int mode, devid_t devid)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_mknod");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:14,代码来源:s5fs.c

示例12: s5fs_write

/* Simply call s5_write_file. */
static int
s5fs_write(vnode_t *vnode, off_t offset, const void *buf, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_write");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:7,代码来源:s5fs.c

示例13: s5fs_read

/* Simply call s5_read_file. */
static int
s5fs_read(vnode_t *vnode, off_t offset, void *buf, size_t len)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_read");
        return -1;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:7,代码来源:s5fs.c

示例14: s5fs_query_vnode

/*
 * See the comment in vfs.h for what is expected of this function.
 *
 * The vnode still exists on disk if it has a linkcount greater than 1.
 * (Remember, VFS takes a reference on the inode as long as it uses it.)
 *
 */
static int
s5fs_query_vnode(vnode_t *vnode)
{
        NOT_YET_IMPLEMENTED("S5FS: s5fs_query_vnode");
        return 0;
}
开发者ID:lygood2007,项目名称:Weenix,代码行数:13,代码来源:s5fs.c

示例15: do_link

/* To link:
 *      o open_namev(from)
 *      o dir_namev(to)
 *      o call the destination dir's (to) link vn_ops.
 *      o return the result of link, or an error
 *
 * Remember to vput the vnodes returned from open_namev and dir_namev.
 *
 * Error cases you must handle for this function at the VFS level:
 *      o EEXIST
 *        to already exists.
 *      o ENOENT
 *        A directory component in from or to does not exist.
 *      o ENOTDIR
 *        A component used as a directory in from or to is not, in fact, a
 *        directory.
 *      o ENAMETOOLONG
 *        A component of from or to was too long.
 *      o EISDIR
 *        from is a directory.
 */
int
do_link(const char *from, const char *to)
{
	NOT_YET_IMPLEMENTED("Link ");
	return -1;
	/*size_t namelen=0;
	const char *name=NULL;
	vnode_t *base = NULL;
	vnode_t *res_vnode_to=NULL;
	vnode_t *res_vnode_from=NULL;
	vnode_t *temp_vnode=NULL;

	KASSERT(from);
	KASSERT(to);

	int from_namev_ret=open_namev(from,NULL,&res_vnode_from,NULL);
	if(from_namev_ret<0)
	{
		KASSERT(from_namev_ret<0);
		dbg(DBG_PRINT,"(GRADING2D 3.g): From component has failed.\n");
		return from_namev_ret;
	}
	KASSERT(res_vnode_from);
	if(S_ISDIR(res_vnode_from->vn_mode))
	{
		KASSERT(S_ISDIR(res_vnode_from->vn_mode));
		dbg(DBG_PRINT, "(GRADING2D 3.g): From is a directory.\n");
		vput(res_vnode_from);
		return -EISDIR;
	}

	int to_namev_ret=dir_namev(to, &namelen,&name,NULL,&res_vnode_to);
	if(to_namev_ret<0)
	{*/
	/* Here we have to check if the vnode from has occurred successfully.
	  * If yes then simply vput the from */
	/*	KASSERT(to_namev_ret<0);
		dbg(DBG_PRINT,"(GRADING2D 3.g): To component has failed.\n");

		vput(res_vnode_from);
		return to_namev_ret;
	}
	KASSERT(res_vnode_to);

	if(!S_ISDIR(res_vnode_to->vn_mode))
	{
		KASSERT(!S_ISDIR(res_vnode_to->vn_mode));
		dbg(DBG_PRINT, "(GRADING2D 3.g): Some directory component is not a directory\n");
		vput(res_vnode_to);
		vput(res_vnode_from);
		return -ENOTDIR;
	}*/

	/* Need to check res_vnode before we call this to avoid conflict */
	/* To check if the path exists */
	/*KASSERT(name!=NULL);
	dbg(DBG_PRINT, "(GRADING2D 3.g): The name component is present\n");

	int loookup_ret=lookup(res_vnode_to,name,namelen,&temp_vnode);
	if(0==loookup_ret)
	{
		KASSERT(0==loookup_ret);
		dbg(DBG_PRINT, "(GRADING2D 3.g): The path exists. Would not be able to create the directory.\n");
		vput(res_vnode_to);
		vput(res_vnode_from);
		vput(temp_vnode);
		return -EEXIST;
	}

	KASSERT(res_vnode_to->vn_ops->link);
	int link_ret=(res_vnode_to->vn_ops->link)(res_vnode_from,res_vnode_to,name,namelen);
	vput(res_vnode_to);
	vput(res_vnode_from);

	if(link_ret<0){
		dbg(DBG_PRINT, "(GRADING2D 3.g): There is a problem in linking.\n");
		return link_ret;
	}

//.........这里部分代码省略.........
开发者ID:nikita92,项目名称:Kernel-2-Virtual-File-System-,代码行数:101,代码来源:vfs_syscall.c


注:本文中的NOT_YET_IMPLEMENTED函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。