GadgetSeed  0.9.6
storage.h ファイル

外部記憶装置管理 [詳解]

#include "device.h"
#include "file.h"
storage.h の依存先関係図:
被依存関係図:

[ソースコード]

データ構造

struct  st_storage_info
 ストレージデバイス [詳解]
 

マクロ定義

#define GSC_FS_VOLUME_NUM   1
 $gsc 最大ストレージデバイスボリューム数
 

関数

void init_storage (void)
 外部記憶装置管理初期化
 
int mount_storage (int drvno, const char *devname, const char *fsname)
 ストレージデバイスをマウントする [詳解]
 
int unmount_storage (int drvno)
 ストレージデバイスをアンマウントする [詳解]
 
int register_storage_device (const char *const device_name[])
 ストレージデバイスをリストでマウントする [詳解]
 
int get_storage_device_name (int drv, char **devname, char **fsname)
 マウントされているデバイス名を取得する [詳解]
 

詳解

外部記憶装置管理

日付
2007.12.16
著者
Takashi SHUDO

storage.h に定義があります。

関数詳解

◆ get_storage_device_name()

int get_storage_device_name ( int  drv,
char **  devname,
char **  fsname 
)

マウントされているデバイス名を取得する

引数
numデバイス番号
devnemeデバイス名
fsnemeファイルシステム名
戻り値
0:成功, !=0:マウントされていないデバイス番号

storage.c195 行目に定義があります。

参照先 st_storage_info::device, st_storage_info::fs, GSC_FS_VOLUME_NUM, st_device::name, storage.

◆ mount_storage()

int mount_storage ( int  drvno,
const char *  devname,
const char *  fsname 
)

ストレージデバイスをマウントする

引数
[in]drvnoデバイス番号
[in]devnameデバイス名文字列ポインタ
戻り値
エラーコード

storage.c64 行目に定義があります。

参照先 GSC_FS_VOLUME_NUM.

参照元 register_storage_device().

被呼び出し関係図:

◆ register_storage_device()

int register_storage_device ( const char *const  device_name[])

ストレージデバイスをリストでマウントする

引数
[in]device_nameデバイス名リスト
戻り値
0:成功, !=0:失敗

storage.c160 行目に定義があります。

参照先 GSC_FS_VOLUME_NUM, mount_storage().

参照元 init_system_process().

呼び出し関係図:
被呼び出し関係図:

◆ unmount_storage()

int unmount_storage ( int  drvno)

ストレージデバイスをアンマウントする

引数
[in]drvnoデバイス番号
戻り値
エラーコード

storage.c119 行目に定義があります。

参照先 GSC_FS_VOLUME_NUM.