Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nfsroot.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/nfs.h>
#include <linux/nfs_fs.h>
#include <linux/utsname.h>
#include <linux/root_dev.h>
#include <net/ipconfig.h>
#include "internal.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_ROOT
 
#define NFS_ROOT   "/tftpboot/%s"
 
#define NFS_DEF_OPTIONS   "vers=2,udp,rsize=4096,wsize=4096"
 

Functions

 __setup ("nfsroot=", nfs_root_setup)
 
int __init nfs_root_data (char **root_device, char **root_data)
 

Macro Definition Documentation

#define NFS_DEF_OPTIONS   "vers=2,udp,rsize=4096,wsize=4096"

Definition at line 90 of file nfsroot.c.

#define NFS_ROOT   "/tftpboot/%s"

Definition at line 87 of file nfsroot.c.

#define NFSDBG_FACILITY   NFSDBG_ROOT

Definition at line 84 of file nfsroot.c.

Function Documentation

__setup ( )
int __init nfs_root_data ( char **  root_device,
char **  root_data 
)

nfs_root_data - Return prepared 'data' for NFSROOT mount : OUT: address of string containing NFSROOT device : OUT: address of string containing NFSROOT mount options

Returns zero and sets and if successful, otherwise -1 is returned.

Definition at line 295 of file nfsroot.c.