On Mon, Aug 31, 2020 at 02:45:15AM +0300, Vladimir Oltean wrote: > This creates a smaller structure within phc2sys_private, which embeds > all properties related to the PMC. This structure is called "pmc_node", > which is somewhat reminiscent of the old name of phc2sys_private (struct > node). But the advantage is that struct pmc_node can be reused by other > modules. > > The phc2sys code that is executed upon a subscription update, > recv_subscribed, is now refactored into a function pointer callback. It > is imaginable that other programs might to do other things in it. > Note that putting this function pointer in struct pmc_node is, long > term, maybe not the best of choices. It is only needed from the > run_pmc_events() code path, and could be therefore passed as a more > local callback to that function only. However, for that, further > refactoring is needed inside the common run_pmc() function, so that is > being left for another time. > > Signed-off-by: Vladimir Oltean <olte...@gmail.com>
Applied. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel