USBIP解读及源码分析
+ -

USBIP IRP_MJ_CLOSE

2023-10-23 13 0

其实个人觉地,对于IRP_MJ_CLOSE应无条件都成功。

static PAGEABLE NTSTATUS
vhci_close(__in PDEVICE_OBJECT devobj, __in PIRP Irp)
{
    pvdev_t    vdev = DEVOBJ_TO_VDEV(devobj);
    NTSTATUS    status;

    PAGED_CODE();

    // Check to see whether the bus is removed
    if (vdev->DevicePnPState == Deleted) {
        Irp->IoStatus.Status = status = STATUS_NO_SUCH_DEVICE;
        IoCompleteRequest(Irp, IO_NO_INCREMENT);
        return status;
    }
    Irp->IoStatus.Information = 0;
    Irp->IoStatus.Status = STATUS_SUCCESS;
    IoCompleteRequest(Irp, IO_NO_INCREMENT);

    return STATUS_SUCCESS;
}
HID人机交互QQ群:564808376    UAC音频QQ群:218581009    UVC相机QQ群:331552032    BOT&UASP大容量存储QQ群:258159197    STC-USB单片机QQ群:315457461    USB技术交流QQ群2:580684376    USB技术交流QQ群:952873936   

0 篇笔记 写笔记

USBIP IRP_MJ_CLOSE
其实个人觉地,对于IRP_MJ_CLOSE应无条件都成功。static PAGEABLE NTSTATUSvhci_close(__in PDEVICE_OBJECT devobj, __in PIRP Irp){ pvdev_t vdev = DEVOBJ_TO_VDEV(de......
关注公众号
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

您的支持,是我们前进的动力!