Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dir.c File Reference
#include <linux/time.h>
#include <linux/errno.h>
#include <linux/stat.h>
#include <linux/kernel.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>
#include <linux/namei.h>
#include <asm/uaccess.h>
#include <asm/byteorder.h>
#include "ncp_fs.h"

Go to the source code of this file.

Macros

#define ncp_symlink   NULL
 
#define ncp_namespace(i)   (NCP_SERVER(i)->name_space[NCP_FINFO(i)->volNumber])
 
#define ncp_preserve_case(i)   (ncp_namespace(i) != NW_NS_DOS)
 

Functions

int ncp_conn_logged_in (struct super_block *sb)
 
int ncp_create_new (struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev, __le32 attributes)
 
int ncp_date_dos2unix (__le16 t, __le16 d)
 
void ncp_date_unix2dos (int unix_date, __le16 *time, __le16 *date)
 

Variables

struct file_operations ncp_dir_operations
 
struct inode_operations ncp_dir_inode_operations
 
struct dentry_operations ncp_dentry_operations
 
struct timezone sys_tz
 

Macro Definition Documentation

#define ncp_namespace (   i)    (NCP_SERVER(i)->name_space[NCP_FINFO(i)->volNumber])

Definition at line 91 of file dir.c.

#define ncp_preserve_case (   i)    (ncp_namespace(i) != NW_NS_DOS)

Definition at line 108 of file dir.c.

#define ncp_symlink   NULL

Definition at line 45 of file dir.c.

Function Documentation

int ncp_conn_logged_in ( struct super_block sb)

Definition at line 793 of file dir.c.

int ncp_create_new ( struct inode dir,
struct dentry dentry,
umode_t  mode,
dev_t  rdev,
__le32  attributes 
)

Definition at line 922 of file dir.c.

int ncp_date_dos2unix ( __le16  t,
__le16  d 
)

Definition at line 1238 of file dir.c.

void ncp_date_unix2dos ( int  unix_date,
__le16 time,
__le16 date 
)

Definition at line 1257 of file dir.c.

Variable Documentation

struct dentry_operations ncp_dentry_operations
Initial value:
=
{
.d_revalidate = ncp_lookup_validate,
.d_hash = ncp_hash_dentry,
.d_compare = ncp_compare_dentry,
.d_delete = ncp_delete_dentry,
}

Definition at line 83 of file dir.c.

struct inode_operations ncp_dir_inode_operations
Initial value:
=
{
.create = ncp_create,
.lookup = ncp_lookup,
.unlink = ncp_unlink,
.symlink = ncp_symlink,
.mkdir = ncp_mkdir,
.rmdir = ncp_rmdir,
.mknod = ncp_mknod,
.rename = ncp_rename,
.setattr = ncp_notify_change,
}

Definition at line 59 of file dir.c.

struct file_operations ncp_dir_operations
Initial value:
=
{
.readdir = ncp_readdir,
.unlocked_ioctl = ncp_ioctl,
}

Definition at line 48 of file dir.c.

struct timezone sys_tz

Definition at line 50 of file time.c.