<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 1: Code-Review-1</p><p style="white-space: pre-wrap; word-wrap: break-word;">I personally wouldn't add this field here, for several reasons:</p><ul><li>It's breaking ABI in all our code base</li><li>We can have lots and lots of osmo_fd structures, we are adding more used space here for some specific case</li><li>Since it's a specific case, we have "void *data" for that. The name can be stored there (or as a field in the struct stored in *data).</li></ul></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not so much worried about memory consumption. Even in a large osmocom program with 1000 file descriptors, we're talking about 8kByte of RAM only. Yes, of couse, I know about cache efficiency, but still I think this is not a concern.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In general, I think having named osmo_fd opens up other possibilities in terms of introspection via VTY. So it's not a bad idea, IMHO.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Yes, it will break ABI. That's the only really sad part about it.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/26453">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/26453">change 26453</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/26453"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I64b288174ae3dd22d50a701ce7cbf9e623246479 </div>
<div style="display:none"> Gerrit-Change-Number: 26453 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 09 Dec 2021 15:28:29 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>