<dec f='src/src/sys/ufs/ffs/ffs_extern.h' l='95' type='int ffs_valloc(struct vnode * , int , kauth_cred_t , ino_t * )'/>
<def f='src/src/sys/ufs/ffs/ffs_alloc.c' l='554' ll='608' type='int ffs_valloc(struct vnode * pvp, int mode, kauth_cred_t cred, ino_t * inop)'/>
<doc f='src/src/sys/ufs/ffs/ffs_alloc.c' l='537'>/*
 * Allocate an inode in the file system.
 *
 * If allocating a directory, use ffs_dirpref to select the inode.
 * If allocating in a directory, the following hierarchy is followed:
 *   1) allocate the preferred inode.
 *   2) allocate an inode in the same cylinder group.
 *   3) quadradically rehash into other cylinder groups, until an
 *      available inode is located.
 * If no inode preference is given the following hierarchy is used
 * to allocate an inode:
 *   1) allocate an inode in cylinder group 0.
 *   2) quadradically rehash into other cylinder groups, until an
 *      available inode is located.
 *
 * =&gt; um_lock not held upon entry or return
 */</doc>
<use f='src/src/sys/ufs/ffs/ffs_vfsops.c' l='2130' u='c' c='ffs_newvnode'/>
