Re: [PATCH net-next v2 1/3] connector/cn_proc: Add hash table for threads

2024-10-15 Thread Anjali Kulkarni
[..snip..] >> +void cn_hash_free_elem(struct uexit_pid_hnode *elem); >> +int cn_hash_add_elem(struct cn_hash_dev *hdev, __u32 uexit_code, pid_t pid); >> +int cn_hash_del_elem(struct cn_hash_dev *hdev, pid_t pid); >> +__u32 cn_hash_del_get_exval(struct cn_hash_dev *hdev, pid_t pid); >> +__u32 cn_

Re: [PATCH net-next v2 1/3] connector/cn_proc: Add hash table for threads

2024-10-15 Thread Anjali Kulkarni
Thanks for the review! See below: > On Oct 15, 2024, at 11:28 AM, Liam Howlett wrote: > > * Anjali Kulkarni [241015 13:30]: >> Add a new type PROC_CN_MCAST_NOTIFY to proc connector API, which allows a >> thread to notify the kernel that is going to exit with a non-zero exit >> code and specify

Re: [PATCH net-next v2 1/3] connector/cn_proc: Add hash table for threads

2024-10-15 Thread Liam R. Howlett
* Anjali Kulkarni [241015 13:30]: > Add a new type PROC_CN_MCAST_NOTIFY to proc connector API, which allows a > thread to notify the kernel that is going to exit with a non-zero exit > code and specify the exit code in it. When thread exits in the kernel, > it will send this exit code as a proc fi

[PATCH net-next v2 1/3] connector/cn_proc: Add hash table for threads

2024-10-15 Thread Anjali Kulkarni
Add a new type PROC_CN_MCAST_NOTIFY to proc connector API, which allows a thread to notify the kernel that is going to exit with a non-zero exit code and specify the exit code in it. When thread exits in the kernel, it will send this exit code as a proc filter notification to any listening process.