50 IN UINT64 ParentNodeId,
53 OUT UINT64 *FuseHandle
71 ReqIoVec[0].Buffer = &CommonReq;
72 ReqIoVec[0].Size =
sizeof CommonReq;
73 ReqIoVec[1].Buffer = &CreateReq;
74 ReqIoVec[1].Size =
sizeof CreateReq;
75 ReqIoVec[2].Buffer = Name;
77 ReqSgList.IoVec = ReqIoVec;
80 RespIoVec[0].Buffer = &CommonResp;
81 RespIoVec[0].Size =
sizeof CommonResp;
82 RespIoVec[1].Buffer = &NodeResp;
83 RespIoVec[1].Size =
sizeof NodeResp;
84 RespIoVec[2].Buffer = &AttrResp;
85 RespIoVec[2].Size =
sizeof AttrResp;
86 RespIoVec[3].Buffer = &OpenResp;
87 RespIoVec[3].Size =
sizeof OpenResp;
88 RespSgList.IoVec = RespIoVec;
95 if (EFI_ERROR (Status)) {
106 VirtioFsFuseOpCreate,
109 if (EFI_ERROR (Status)) {
121 CreateReq.Flags = VIRTIO_FS_FUSE_OPEN_REQ_F_RDWR;
122 CreateReq.Mode = (VIRTIO_FS_FUSE_MODE_PERM_RUSR |
123 VIRTIO_FS_FUSE_MODE_PERM_WUSR |
124 VIRTIO_FS_FUSE_MODE_PERM_RGRP |
125 VIRTIO_FS_FUSE_MODE_PERM_WGRP |
126 VIRTIO_FS_FUSE_MODE_PERM_ROTH |
127 VIRTIO_FS_FUSE_MODE_PERM_WOTH);
129 CreateReq.Padding = 0;
135 if (EFI_ERROR (Status)) {
143 if (EFI_ERROR (Status)) {
144 if (Status == EFI_DEVICE_ERROR) {
147 "%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
165 *NodeId = NodeResp.NodeId;
166 *FuseHandle = OpenResp.FileHandle;
UINTN EFIAPI AsciiStrSize(IN CONST CHAR8 *String)
EFI_STATUS VirtioFsFuseOpenOrCreate(IN OUT VIRTIO_FS *VirtioFs, IN UINT64 ParentNodeId, IN CHAR8 *Name, OUT UINT64 *NodeId, OUT UINT64 *FuseHandle)
#define ARRAY_SIZE(Array)
#define DEBUG(Expression)
EFI_STATUS VirtioFsFuseCheckResponse(IN VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList, IN UINT64 RequestId, OUT UINTN *TailBufferFill)
EFI_STATUS VirtioFsFuseNewRequest(IN OUT VIRTIO_FS *VirtioFs, OUT VIRTIO_FS_FUSE_REQUEST *Request, IN UINT32 RequestSize, IN VIRTIO_FS_FUSE_OPCODE Opcode, IN UINT64 NodeId)
EFI_STATUS VirtioFsSgListsSubmit(IN OUT VIRTIO_FS *VirtioFs, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *RequestSgList, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList OPTIONAL)
EFI_STATUS VirtioFsErrnoToEfiStatus(IN INT32 Errno)
EFI_STATUS VirtioFsSgListsValidate(IN VIRTIO_FS *VirtioFs, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *RequestSgList, IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList OPTIONAL)