On 02/04/2025 16:58, Zhu Yanjun wrote:
Previously I once discussed with Bob Pearson about the function names.
This is a frequently raised question, yet I have not discovered a definitive
coding style(Please let me know if you have). According to my understanding,
the common practice I adhere to is as follows:
- Functions utilized within a single file often do not require a prefix, as current situation.
- If a function is to be used across multiple files, I believe a prefix is essential.
Thanks
Zhijian
Perhaps it is better to rename is_odp_mr to rxe_is_odp_mr?
Since sometimes we debug in rdma, with a lot of functions with the same name, it is difficult to recognize the modules that this function belongs to.
Thus, in rxe module, it is better to add rxe_ prefix to the function name. But anyway, this commit is fine.