GadgetSeed  0.9.6
storage.c ファイル

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

#include "storage.h"
#include "fs.h"
#include "device.h"
#include "diskio.h"
#include "tprintf.h"
#include "tkprintf.h"
storage.c の依存先関係図:

[ソースコード]

マクロ定義

#define DEVNAME_LEN   2
 

関数

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)
 マウントされているデバイス名を取得する [詳解]
 

変数

struct st_storage_info storage [GSC_FS_VOLUME_NUM]
 ストレージデバイステーブル
 

詳解

ストレージデバイス

ストレージデバイスのファイルシステムへのマウント、アンマウント等を行う。

日付
2007.12.16
著者
Takashi SHUDO

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

関数詳解

◆ 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.