kernels/linux-2.4.0/fs/fat/misc.c
/*
 * Scans a directory for a given file (name points to its formatted name) or
 * for an empty directory slot (name is NULL). Returns an error code or zero.
 */
Scans a directory for a given file (name points to its formatted name) or
for an empty directory slot (name is NULL). Returns an error code or zero.
Scans a directory for a given file ( name points to its formatted name ) or for an empty directory slot ( name is NULL ) . Returns an error code or zero .
int fat_scan(struct inode *dir,const char *name,struct buffer_head **res_bh,
    struct msdos_dir_entry **res_de,int *ino)
{
	int res;
	res = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,
		       name, NULL, ino, res_bh, res_de);
	return res<0 ? res : 0;
}
int fat_scan ( struct inode * dir , const char * name , struct buffer_head * * res_bh , struct msdos_dir_entry * * res_de , int * ino ) { int res ; res = raw_scan ( dir -> i_sb , MSDOS_I ( dir ) -> i_start , name , NULL , ino , res_bh , res_de ) ; return res < 0 ? res : 0 ; }
Scans a directory for a given file (name points to its formatted name) or
 for an empty directory slot (name is NULL).
Scans a directory for a given file ( name points to its formatted name ) or for an empty directory slot ( name is NULL ) .