Questions of kref usages for j1939_priv objects.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Kernel Maintainers,

I hope this message finds you well.

I am currently studying the reference count usage for j1939_priv objects in the kernel, and I have encountered a few questions that I hope you might be able to help me with.

Q1: Is the member kref of j1939_priv objects used for tracking the number of references? It seems so, as when kref reaches zero, the object is freed by the __j1939_priv_release function.

Q2:  If kref is indeed used for tracking references, could you kindly help me understand where the reference operations occur? The function j1939_netdev_stop calls j1939_priv_put to decrease the reference count, and the functions j1939_jsk_add and j1939_jsk_del manipulate the reference counts. However, I have been unable to find the corresponding reference copy or destroy.

I understand that you have a busy schedule, and I am very grateful for any time you can take to help me with these questions. Your insights would greatly enhance my understanding of this topic. 

Thank you so much for your time, assistance, and significant contributions to the kernel.

Best regards,
Shuangpeng Bai




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux