Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 list 部分的 element_offset 宏 #52

Open
vanJker opened this issue Feb 12, 2024 · 1 comment
Open

关于 list 部分的 element_offset 宏 #52

vanJker opened this issue Feb 12, 2024 · 1 comment

Comments

@vanJker
Copy link

vanJker commented Feb 12, 2024

这个宏可以直接使用 GCC 提供的 offset 宏来替代,Linux 目前也是也是采用 GCC 的这个宏来实现 container_of

@yinghaoyu
Copy link
Contributor

不要在意这些细节,学造轮子也是比较有趣的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants