ifname, dev_str); dev = -1; dev = -EINVAL; goto cleanup; }@@ -359,15 +359,15 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str, if (*ep) { printf("** Bad HW partition specification %s %s **\n", ...
static void virtblk_update_cache_mode(struct virtio_device *vdev) { u8 writeback = virtblk_get_cache_mode(vdev); struct virtio_blk *vblk = vdev->priv;blk_queue_write_cache(vblk->disk->queue, writeback, false); }static const char *const virtblk_cache_types[] = {...
block_device*bdev; structrequest_queue*q; intret=0; bdev=READ_ONCE(bio->bi_bdev); if(!bdev) return0; q=bdev_get_queue(bdev); if(cookie==BLK_QC_T_NONE|| !test_bit(QUEUE_FLAG_POLL,&q->queue_flags)) return0; blk_flush_plug...
*/staticintrb_transfer(struct request *req){//struct rb_device *dev = (struct rb_device *)(req->rq_disk->private_data);intdir = rq_data_dir(req);sector_tstart_sector = blk_rq_pos(req);unsignedintsector_cnt =blk_rq_sectors(req);#if(LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0))...
intmain(intargc,char*argv[]){char*filename;structstatsb;intfilekind;char*reason;intstatus;// argument checkif(argc !=2) {fprintf(stderr,"Usage: "PROGNAME_S" <device>\n");return1; } filename = argv[1];// set input to unbufferedfflush(NULL); ...
__scsi_device_lookup_by_target __scsi_execute __scsi_print_sense __sdhci_add_host __seq_open_private __serio_register_port __sg_alloc_table_from_pages __sg_page_iter_next __sg_page_iter_start __sk_receive_skb __skb_ext_put __skb_flow_dissect __skb_get_hash ...
unsigned int maj = FMAJOR(device); unsigned int min = FMINOR(device); struct fio_file *f; char dev[256]; unsigned int i; if (cache->maj == maj && cache->min == min) return cache->fileno; cache->maj = maj; cache->min = min; /* * check for this file in ...
log_err("fio: did not find replay device(s)\n"); return false; } /* * For stacked devices, we don't always get a COMPLETE event so * the depth grows to insane values. Limit it to something sane(r).*/ max_depth = 0; ...
+ ubi_get_volume_info(desc, &vi); + + err = ubiblk_create(&vi); + if (err < 0) + pr_err("can't create the initial device " + "ubiblk%d_%d: %d\n", ubi_num, vi.vol_id, err); + ubi_close_volume(desc); + + return err; ...
().getTime(); var partner = 'webapp'; var os = 'Android'; var channel = '1012139p'; var jumpUrl = 'https://map.baidu.com/mobile/webapp'; // 用不到,所以给一个固定值 if (deviceUtil.isIOS()) { os = 'iphone'; channel = '1012139r'; } var tokenUrl = jumpUrl + '?clickTime...