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

使用kmalloc和kp_malloc遇到的问题 #11

Open
SoyBeanMilkx opened this issue Oct 22, 2024 · 0 comments
Open

使用kmalloc和kp_malloc遇到的问题 #11

SoyBeanMilkx opened this issue Oct 22, 2024 · 0 comments

Comments

@SoyBeanMilkx
Copy link

我想为数组动态申请一段内存,刚开始使用kmalloc申请,但是缺少第二个参数(gfp_t flags),我跳进gfp.h发现里面的内容被注释了。于是我就是用kp_malloc函数。但是一旦使用了这个函数就会导致加载模块加载失败,我用的这个命令加载。kpatch $key kpm load $path。我该怎么给数组动态申请长度呢?麻烦大佬解答一下,感谢感谢

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

1 participant