Attention is currently required from: daniel, jolly, osmith, pespin.

pespin uploaded patch set #3 to this change.

View Change

The following approvals got outdated and were removed: Verified+1 by Jenkins Builder

The change is no longer submittable: Verified is unsatisfied now.

osmo_io: Refactor iofd_msghdr_alloc()

* flags can be passed during iofd_msghdr_alloc() as a parameter easily
rather than later on assigning it to the already created object, do so.
* msghdr has to be filled in differently mainly based on whether it is
to be used for read or write related operations. Hence, split the
allocation into 2 functions and fill as much as possible inside the
allocation function (eg. internal pointers from the iofd_msghdr to the
(sub) struct msghdr one.

This way all users of the iofd_msghdr alloction are simplified a lot.

Change-Id: I6552db468aaad7f638dade748f94a30255307f03
---
M src/core/osmo_io.c
M src/core/osmo_io_internal.h
M src/core/osmo_io_poll.c
M src/core/osmo_io_uring.c
4 files changed, 101 insertions(+), 111 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/41/44141/3

To view, visit change 44141. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6552db468aaad7f638dade748f94a30255307f03
Gerrit-Change-Number: 44141
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <daniel@totalueberwachung.de>
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: jolly <andreas@eversberg.eu>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Attention: daniel <daniel@totalueberwachung.de>
Gerrit-Attention: pespin <pespin@sysmocom.de>
Gerrit-Attention: jolly <andreas@eversberg.eu>
Gerrit-Attention: osmith <osmith@sysmocom.de>