···7979 * pathname in *buf*, including the NUL termination character. On error, a8080 * negative integer is returned.8181 */8282-__bpf_kfunc int bpf_path_d_path(struct path *path, char *buf, size_t buf__sz)8282+__bpf_kfunc int bpf_path_d_path(const struct path *path, char *buf, size_t buf__sz)8383{8484 int len;8585 char *ret;
···219219 * including the NULL termination character, stored in the supplied220220 * buffer. On error, a negative integer is returned.221221 */222222-extern int bpf_path_d_path(struct path *path, char *buf, size_t buf__sz) __ksym;222222+extern int bpf_path_d_path(const struct path *path, char *buf, size_t buf__sz) __ksym;223223224224/* This macro must be used to mark the exception callback corresponding to the225225 * main program. For example: