rem: struct devfs_vnode *v; int res = B_NO_ERROR;
add: struct devfs_vnode *vnode; int status = B_NO_ERROR;
context: devfs_unlink(fs_cookie _fs, fs_vnode _dir, const char *name){	struct devfs *fs = _fs;	struct devfs_vnode *dir = _dir;	struct devfs_vnode *v;	int res = B_NO_ERROR;	mutex_lock(&fs->lock);	v = devfs_find_in_dir( dir, name );	if(!v) {		res = ERR_NOT_FOUND;		goto err;	}		// you can unlink partitions only	if( v->stream.type != STREAM_TYPE_DEVICE || !v->stream.u.dev.part_map ) {		res = EROFS;		goto err;	}	res = devfs_remove_from_dir( v->parent, v );	if( res )		goto err;	res = vfs_remove_vnode( fs->id, v->id );err:		mutex_unlock(&fs->lock);	return res;}