Lines Matching defs:buffer
87 * @buffer: Pointer to buffer to return value in.
88 * @buflen: Sizeof @buffer.
90 * Returns the buffer on success, an error code otherwise.
94 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer,
101 pos = d_absolute_path(path, buffer, buflen - 1);
106 buffer[buflen - 2] = '/';
107 buffer[buflen - 1] = '\0';
118 * @buffer: Pointer to buffer to return value in.
119 * @buflen: Sizeof @buffer.
121 * Returns the buffer on success, an error code otherwise.
125 static char *tomoyo_get_dentry_path(struct dentry *dentry, char * const buffer,
131 pos = dentry_path_raw(dentry, buffer, buflen - 1);
136 buffer[buflen - 2] = '/';
137 buffer[buflen - 1] = '\0';
148 * @buffer: Pointer to buffer to return value in.
149 * @buflen: Sizeof @buffer.
151 * Returns the buffer on success, an error code otherwise.
153 static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer,
157 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen);
170 if (pos < buffer)
200 if (pos < buffer)
212 if (pos < buffer)