]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-event: Update `uio_offset` and `uio_resid` on successful reads
authorEduard Vintilă <eduard.vintila47@gmail.com>
Sat, 11 Mar 2023 18:29:59 +0000 (20:29 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 26 Apr 2023 10:39:09 +0000 (10:39 +0000)
commit86fd2b88a37f29226a2e09f215373a04cc23c8c1
tree70c0194c21af1d35f62c3120d017d7c57be44fbe
parentb2515170789f83f16c750d7b055374e2cc266bed
lib/posix-event: Update `uio_offset` and `uio_resid` on successful reads

This commit updates (on a sucessful read) the `uio_offset` and
`uio_resid` members of the `uio` structure passed to the
`eventfd_vfscore_read` function. Without updating those members, the
`read` function from the vfscore layer will always report that no bytes
have been read at all.

Signed-off-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Delia Pavel <delia_maria.pavel@stud.acs.upb.ro>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #798
lib/posix-event/eventfd.c