Lines Matching refs:buffer
92 static char *tomoyo_get_absolute_path(struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument
98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
102 buffer[buflen - 2] = '/'; in tomoyo_get_absolute_path()
103 buffer[buflen - 1] = '\0'; in tomoyo_get_absolute_path()
121 static char *tomoyo_get_dentry_path(struct dentry *dentry, char * const buffer, in tomoyo_get_dentry_path() argument
126 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path()
130 buffer[buflen - 2] = '/'; in tomoyo_get_dentry_path()
131 buffer[buflen - 1] = '\0'; in tomoyo_get_dentry_path()
147 static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer, in tomoyo_get_local_path() argument
151 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path()
161 if (pos < buffer) in tomoyo_get_local_path()
189 if (pos < buffer) in tomoyo_get_local_path()
200 if (pos < buffer) in tomoyo_get_local_path()
219 static char *tomoyo_get_socket_name(struct path *path, char * const buffer, in tomoyo_get_socket_name() argument
226 snprintf(buffer, buflen, "socket:[family=%u:type=%u:" in tomoyo_get_socket_name()
230 snprintf(buffer, buflen, "socket:[unknown]"); in tomoyo_get_socket_name()
232 return buffer; in tomoyo_get_socket_name()