FreeBSD/sys/fs/fdescfs/fdesc_vnops.c
/*
 * Remove an entry from the hash if it exists.
 */
Remove an entry from the hash if it exists.
Remove an entry from the hash if it exists .
static void
fdesc_remove_entry(struct fdescnode *fd)
{
	struct fdhashhead *fc;
	struct fdescnode *fd2;
	fc = FD_NHASH(fd->fd_ix);
	mtx_lock(&fdesc_hashmtx);
	LIST_FOREACH(fd2, fc, fd_hash) {
		if (fd == fd2) {
			LIST_REMOVE(fd, fd_hash);
			break;
		}
	}
	mtx_unlock(&fdesc_hashmtx);
}
static void fdesc_remove_entry ( struct fdescnode * fd ) { struct fdhashhead * fc ; struct fdescnode * fd2 ; fc = FD_NHASH ( fd -> fd_ix ) ; mtx_lock ( & fdesc_hashmtx ) ; LIST_FOREACH ( fd2 , fc , fd_hash ) { if ( fd == fd2 ) { LIST_REMOVE ( fd , fd_hash ) ; break ; } } mtx_unlock ( & fdesc_hashmtx ) ; }
Remove an entry from the hash if it exists.
Remove an entry from the hash if it exists .