Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
dir.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/buffer_head.h>
#include <linux/compat.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include "fat.h"

Go to the source code of this file.

Data Structures

struct  fat_ioctl_filldir_callback
 

Macros

#define FAT_MAX_SHORT_SIZE   ((MSDOS_NAME + 1) * NLS_MAX_CHARSET_SIZE + 1)
 
#define FAT_MAX_UNI_CHARS   ((MSDOS_SLOTS - 1) * 13 + 1)
 
#define FAT_MAX_UNI_SIZE   (FAT_MAX_UNI_CHARS * sizeof(wchar_t))
 

Enumerations

enum  { PARSE_INVALID = 1, PARSE_NOT_LONGNAME, PARSE_EOF }
 

: FAT_MAX_SHORT_SIZE array in which to place extracted name

fat_parse_short - Parse MS-DOS (short) directory entry. : superblock : directory entry to parse

: Nonzero == prepend '.' to names with ATTR_HIDDEN

Returns the number of characters extracted into 'name'.

#define FAT_IOCTL_FILLDIR_FUNC(func, dirent_type)
 
struct file_operations fat_dir_operations
 
int fat_search_long (struct inode *inode, const unsigned char *name, int name_len, struct fat_slot_info *sinfo)
 
 EXPORT_SYMBOL_GPL (fat_search_long)
 
int fat_get_dotdot_entry (struct inode *dir, struct buffer_head **bh, struct msdos_dir_entry **de)
 
 EXPORT_SYMBOL_GPL (fat_get_dotdot_entry)
 
int fat_dir_empty (struct inode *dir)
 
 EXPORT_SYMBOL_GPL (fat_dir_empty)
 
int fat_subdirs (struct inode *dir)
 
int fat_scan (struct inode *dir, const unsigned char *name, struct fat_slot_info *sinfo)
 
 EXPORT_SYMBOL_GPL (fat_scan)
 
int fat_remove_entries (struct inode *dir, struct fat_slot_info *sinfo)
 
 EXPORT_SYMBOL_GPL (fat_remove_entries)
 
int fat_alloc_new_dir (struct inode *dir, struct timespec *ts)
 
 EXPORT_SYMBOL_GPL (fat_alloc_new_dir)
 
int fat_add_entries (struct inode *dir, void *slots, int nr_slots, struct fat_slot_info *sinfo)
 
 EXPORT_SYMBOL_GPL (fat_add_entries)
 

Macro Definition Documentation

#define FAT_IOCTL_FILLDIR_FUNC (   func,
  dirent_type 
)

Definition at line 706 of file dir.c.

#define FAT_MAX_SHORT_SIZE   ((MSDOS_NAME + 1) * NLS_MAX_CHARSET_SIZE + 1)

Definition at line 30 of file dir.c.

#define FAT_MAX_UNI_CHARS   ((MSDOS_SLOTS - 1) * 13 + 1)

Definition at line 35 of file dir.c.

#define FAT_MAX_UNI_SIZE   (FAT_MAX_UNI_CHARS * sizeof(wchar_t))

Definition at line 36 of file dir.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
PARSE_INVALID 
PARSE_NOT_LONGNAME 
PARSE_EOF 

Definition at line 271 of file dir.c.

Function Documentation

EXPORT_SYMBOL_GPL ( fat_search_long  )
EXPORT_SYMBOL_GPL ( fat_get_dotdot_entry  )
EXPORT_SYMBOL_GPL ( fat_dir_empty  )
EXPORT_SYMBOL_GPL ( fat_scan  )
EXPORT_SYMBOL_GPL ( fat_remove_entries  )
EXPORT_SYMBOL_GPL ( fat_alloc_new_dir  )
EXPORT_SYMBOL_GPL ( fat_add_entries  )
int fat_add_entries ( struct inode dir,
void slots,
int  nr_slots,
struct fat_slot_info sinfo 
)

Definition at line 1246 of file dir.c.

int fat_alloc_new_dir ( struct inode dir,
struct timespec ts 
)

Definition at line 1104 of file dir.c.

int fat_dir_empty ( struct inode dir)

Definition at line 902 of file dir.c.

int fat_get_dotdot_entry ( struct inode dir,
struct buffer_head **  bh,
struct msdos_dir_entry **  de 
)

Definition at line 887 of file dir.c.

int fat_remove_entries ( struct inode dir,
struct fat_slot_info sinfo 
)

Definition at line 1003 of file dir.c.

int fat_scan ( struct inode dir,
const unsigned char name,
struct fat_slot_info sinfo 
)

Definition at line 948 of file dir.c.

int fat_search_long ( struct inode inode,
const unsigned char name,
int  name_len,
struct fat_slot_info sinfo 
)

Definition at line 467 of file dir.c.

int fat_subdirs ( struct inode dir)

Definition at line 927 of file dir.c.

Variable Documentation

struct file_operations fat_dir_operations
Initial value:
= {
.readdir = fat_readdir,
.unlocked_ioctl = fat_dir_ioctl,
.fsync = fat_file_fsync,
}

Definition at line 855 of file dir.c.