Linux kernel 笔记 (38)——”__user”修饰符


ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);


This annotation is a form of documentation, noting that a pointer is a user-space address that cannot be directly dereferenced. For normal compilation, __user has no effect, but it can be used by external checking software to find misuse of user-space addresses.




电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.