search for: virtblk_identify_deprec

Displaying 2 results from an estimated 2 matches for "virtblk_identify_deprec".

2009 Sep 29
0
[PATCH 3/4] virtio_blk: implement a request-based ID command, VIRTIO_BLK_T_GET_ID
...LOCK: if (req->cmd[0] == REQ_LB_OP_FLUSH) { vbr->out_hdr.type = VIRTIO_BLK_T_FLUSH; @@ -201,29 +208,59 @@ struct virtio_blk_config_deprecated { __u8 identify[VIRTIO_BLK_ID_BYTES]; } __attribute__((packed)); -static int virtblk_identify(struct gendisk *disk, void *argp) +static int virtblk_identify_deprecated(struct virtio_blk *vblk, void *opaque) +{ + return virtio_config_buf(vblk->vdev, VIRTIO_BLK_F_IDENTIFY, + offsetof(struct virtio_blk_config_deprecated, identify), opaque, + VIRTIO_BLK_ID_BYTES); +} + +static int virtblk_get_id(struct virtio_blk *vblk, void *opaque) +{ + struct request *req...
2009 Sep 29
0
[PATCH 3/4] virtio_blk: implement a request-based ID command, VIRTIO_BLK_T_GET_ID
...LOCK: if (req->cmd[0] == REQ_LB_OP_FLUSH) { vbr->out_hdr.type = VIRTIO_BLK_T_FLUSH; @@ -201,29 +208,59 @@ struct virtio_blk_config_deprecated { __u8 identify[VIRTIO_BLK_ID_BYTES]; } __attribute__((packed)); -static int virtblk_identify(struct gendisk *disk, void *argp) +static int virtblk_identify_deprecated(struct virtio_blk *vblk, void *opaque) +{ + return virtio_config_buf(vblk->vdev, VIRTIO_BLK_F_IDENTIFY, + offsetof(struct virtio_blk_config_deprecated, identify), opaque, + VIRTIO_BLK_ID_BYTES); +} + +static int virtblk_get_id(struct virtio_blk *vblk, void *opaque) +{ + struct request *req...