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

Go to the source code of this file.

Macros

#define SECS_PER_MIN   60
 
#define SECS_PER_HOUR   (60 * 60)
 
#define SECS_PER_DAY   (SECS_PER_HOUR * 24)
 
#define DAYS_DELTA   (365 * 10 + 2)
 
#define YEAR_2100   120
 
#define IS_LEAP_YEAR(y)   (!((y) & 3) && (y) != YEAR_2100)
 

Functions

void __fat_fs_error (struct super_block *sb, int report, const char *fmt,...)
 
 EXPORT_SYMBOL_GPL (__fat_fs_error)
 
void fat_msg (struct super_block *sb, const char *level, const char *fmt,...)
 
int fat_clusters_flush (struct super_block *sb)
 
int fat_chain_add (struct inode *inode, int new_dclus, int nr_cluster)
 
void fat_time_fat2unix (struct msdos_sb_info *sbi, struct timespec *ts, __le16 __time, __le16 __date, u8 time_cs)
 
void fat_time_unix2fat (struct msdos_sb_info *sbi, struct timespec *ts, __le16 *time, __le16 *date, u8 *time_cs)
 
 EXPORT_SYMBOL_GPL (fat_time_unix2fat)
 
int fat_sync_bhs (struct buffer_head **bhs, int nr_bhs)
 

Variables

struct timezone sys_tz
 

Macro Definition Documentation

#define DAYS_DELTA   (365 * 10 + 2)

Definition at line 180 of file misc.c.

#define IS_LEAP_YEAR (   y)    (!((y) & 3) && (y) != YEAR_2100)

Definition at line 183 of file misc.c.

#define SECS_PER_DAY   (SECS_PER_HOUR * 24)

Definition at line 178 of file misc.c.

#define SECS_PER_HOUR   (60 * 60)

Definition at line 177 of file misc.c.

#define SECS_PER_MIN   60

Definition at line 176 of file misc.c.

#define YEAR_2100   120

Definition at line 182 of file misc.c.

Function Documentation

void __fat_fs_error ( struct super_block sb,
int  report,
const char fmt,
  ... 
)

Definition at line 23 of file misc.c.

EXPORT_SYMBOL_GPL ( __fat_fs_error  )
EXPORT_SYMBOL_GPL ( fat_time_unix2fat  )
int fat_chain_add ( struct inode inode,
int  new_dclus,
int  nr_cluster 
)

Definition at line 104 of file misc.c.

int fat_clusters_flush ( struct super_block sb)

Definition at line 65 of file misc.c.

void fat_msg ( struct super_block sb,
const char level,
const char fmt,
  ... 
)

fat_msg() - print preformated FAT specific messages. Every thing what is not fat_fs_error() should be fat_msg().

Definition at line 51 of file misc.c.

int fat_sync_bhs ( struct buffer_head **  bhs,
int  nr_bhs 
)

Definition at line 265 of file misc.c.

void fat_time_fat2unix ( struct msdos_sb_info sbi,
struct timespec ts,
__le16  __time,
__le16  __date,
u8  time_cs 
)

Definition at line 192 of file misc.c.

void fat_time_unix2fat ( struct msdos_sb_info sbi,
struct timespec ts,
__le16 time,
__le16 date,
u8 time_cs 
)

Definition at line 228 of file misc.c.

Variable Documentation

struct timezone sys_tz

Definition at line 50 of file time.c.