2012年9月29日

片段->partition check

摘要: linux 3.5.31 struct parsed_partitions *2 check_partition(struct gendisk *hd, struct block_device *bdev)//--------分区检测3 -->efi_partition, /* this must come before msdos */ //intel的EFI4 -->msdos_partition, //microsoft的msdos1 set_capacity(disk, 0);//-... 阅读全文

posted @ 2012-09-29 23:03 深眸远绿 阅读(487) 评论(0) 推荐(0)

片段->init

摘要: android4.1section.1int do_mount_all(int nargs, char **args)-------------------builtins.c 1 int do_mount_all(int nargs, char **args) 2 { 3 pid_t pid; 4 int ret = -1; 5 int child_ret = -1; 6 int status; 7 const char *prop; 8 9 if (nargs != 2) {10 return -1;11 }12 1... 阅读全文

posted @ 2012-09-29 22:25 深眸远绿 阅读(645) 评论(0) 推荐(0)

片段->vold

摘要: android4.1section.1int Volume::mountVol() { dev_t deviceNodes[4]; int n, i, rc = 0; char errmsg[255]; const char* externalStorage = getenv("EXTERNAL_STORAGE");\\-----mnt/sdcard bool primaryStorage = externalStorage && !strcmp(getMountpoint(), externalStorage); char decrypt_state[PR 阅读全文

posted @ 2012-09-29 22:25 深眸远绿 阅读(489) 评论(0) 推荐(0)

片段->sdcard

摘要: section.1 main()--------sdcard.c 1 int main(int argc, char **argv) 2 { 3 struct fuse fuse; 4 char opts[256]; 5 int fd; 6 int res; 7 const char *path = NULL; 8 int i; 9 10 for (i = 1; i < argc; i++) {11 char* arg = argv[i];12 if (!path)13 path =... 阅读全文

posted @ 2012-09-29 22:25 深眸远绿 阅读(1571) 评论(2) 推荐(0)

导航