Read the whole thread, 33 messages PreviousNext Re: [PATCH net-next v9 12/13] net: ethtool: tsinfo: Add support for hwtstamp provider and get/set hwtstamp config FromJakub Kicinski <kuba@kernel.org> Date2024-03-05 18:04:29 Also inlinux-doc, lkmlReply toKöry Maincent, 2024-03-05 On Tue, 5 Mar 2024 17:52:53 +0100 Köry Maincent wrote:quotedquoted+ /* Does the hwtstamp supported in the netdev topology */ + if (mod) { + hwtstamp.ptp = ptp_clock_get_by_index(phc_index); This just returns a pointer without any refcounting, right? What guarantees the ptp object doesn't disappear? Could the ptp object disappears within rtnlock? I believe so, yes. Maybe I should add refcounting.
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help