On 05/01/2024 19:05, Aditya Deshpande wrote:
#include <asm/word-at-a-time.h> +/*
- Returns the *index* of '\0' in src, or >= max if not found.
- */
I know that there are comments on the reason for aligned vs unaligned in the function do_strnlen_user(), but maybe some info in the comment on what exactly the 'align' parameter means/does may be helpful.
Good point, will do!
Kevin
+static __always_inline long find_zero_aligned(const unsigned long __user *src, + unsigned long max, + unsigned long align)