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 const struct block_device_operations virtblk_fops = { .owner = THIS_MODULE, .getgeo = virtblk_getgeo, .free_disk = virtblk_free_disk, .report_zones = virtblk_report_zones, };static int index_to_minor(int index) { return index << PART_BITS;...
str); } __setup("fail_make_request=",setup_fail_make_request); boolshould_fail_request(structblock_device*part,unsignedintbytes) { returnbdev_test_flag(part,BD_MAKE_IT_FAIL)&& should_fail(&fail_make_request,bytes); } staticint__init...
staticintstackbd_start(chardev_path[]){unsignedmax_sectors;if(!(stackbd.bdev_raw = stackbd_bdev_open(dev_path)))return-EFAULT;/* Set up our internal device */stackbd.capacity = get_capacity(stackbd.bdev_raw->bd_disk); printk("stackbd: Device real capacity: %llu\n", (unsignedlonglong...
CONFIG_USES_DEVICETREE=y CONFIG_arm=y CONFIG_ARCH="arm" # # Target Images # # CONFIG_TARGET_ROOTFS_INITRAMFS is not set CONFIG_EXTERNAL_CPIO="" # # Root filesystem archives # # CONFIG_TARGET_ROOTFS_CPIOGZ is not set # CONFIG_TARGET_ROOTFS_TARGZ is not set # #...
__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 ...
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); ...
+ * Get a major number and register to UBI notifications ; register the ioctl + * handler device. + */ +static int __init ubiblk_init(void) +{ + int ret; + + ret = register_blkdev(0, "ubiblk"); + if (ret < 0) + return ret; ...
().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...
OVESETUP_DB/user=str:engine OVESETUP_DB/port=int:5432 OVESETUP_SYSTEM/nfsConfigEnabled=bool:False OVESETUP_CONFIG/applicationMode=str:virt OVESETUP_CONFIG/firewallManager=str:firewalld OVESETUP_CONFIG/websocketProxyConfig=none:True OVESETUP_CONFIG/storageType=str:nfs ...