Blocking call in phosphor-networkd

Patrick Williams patrick at stwcx.xyz
Wed Oct 19 16:18:10 AEDT 2022


On Tue, Oct 18, 2022 at 11:53:13PM -0500, Patrick Williams wrote:
> On Wed, Oct 19, 2022 at 11:40:17AM +0800, Lei Yu wrote:
> 
> > An alternative is to make async calls, but phosphor-networkd is
> > written in "sync" way so it may require more effort to change it
> > async.
> 
> Does systemd-networkd emit any signals on this property?  Should we
> match/cache the property instead of calling over to the other daemon?

It appears like it does.  I'd recommend this approach.

```
$ busctl introspect org.freedesktop.hostname1 /org/freedesktop/hostname1
...
org.freedesktop.hostname1           interface -         -
...
.Hostname                           property  s         "heinlein"      emits-change <---
```

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20221019/7aad42f8/attachment-0001.sig>


More information about the openbmc mailing list