Displaying 2 results from an estimated 2 matches for "cnt_in".
2020 Aug 11
2
clarifying the handling of responses for virtio-rpmb
...lt frame is filled in and sent back?
I must say I'm a little confused by the logic in rpmb_ioctl (in the
userspace tool) which creates both out_frames and resp frames:
static int rpmb_ioctl(uint8_t frame_type, int fd, uint16_t req,
const void *frames_in, unsigned int cnt_in,
void *frames_out, unsigned int cnt_out)
{
int ret;
struct __packed {
struct rpmb_ioc_seq_cmd h;
struct rpmb_ioc_cmd cmd[3];
} iseq = {};
void *frame_res = NULL;
int i;
uint32_...
2020 Sep 11
0
[virtio-dev] Re: clarifying the handling of responses for virtio-rpmb
...ays an incoming
> frame to be filled either with the RESULT_READ data or the response
> data for REQ_GET_WRITE_COUNTER/REQ_DATA_READ.
>
>>> static int rpmb_ioctl(uint8_t frame_type, int fd, uint16_t req,
>>> const void *frames_in, unsigned int cnt_in,
>>> void *frames_out, unsigned int cnt_out)
>>> {
>>> int ret;
>>> struct __packed {
>>> struct rpmb_ioc_seq_cmd h;
>>> struct rpmb_ioc_cmd cmd[3];
>>...