Lines Matching defs:buffer

342 	void *buffer = NULL;
347 &buffer, false);
351 len = security_inode_getsecurity(idmap, inode, name, &buffer,
359 memcpy(value, buffer, len);
361 kfree(buffer);
370 * before retrieving the extended attribute. The xattr value buffer should
464 * @list: buffer to store xattr names into
465 * @size: size of the buffer
480 * Return: On success, the size of the buffer that was used. On error a
973 int xattr_list_one(char **buffer, ssize_t *remaining_size, const char *name)
978 if (*buffer) {
981 memcpy(*buffer, name, len);
982 *buffer += len;
991 * @buffer: result buffer
992 * @buffer_size: size of @buffer
1000 generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)
1009 err = xattr_list_one(&buffer, &remaining_size, handler->name);
1146 * @buffer: the buffer to store the value into
1147 * @size: the size of @buffer
1150 * If @buffer is provided store the value of @xattr in @buffer
1151 * otherwise just return the length. The size of @buffer is limited
1158 void *buffer, size_t size)
1169 if (buffer) {
1173 memcpy(buffer, xattr->value, xattr->size);
1293 * @buffer: the buffer to store all xattrs into
1294 * @size: the size of @buffer
1296 * List all xattrs associated with @inode. If @buffer is NULL we returned
1297 * the required size of the buffer. If @buffer is provided we store the
1301 * limited to XATTR_LIST_MAX aka 65536 bytes. If a larger buffer is passed
1309 char *buffer, size_t size)
1317 err = posix_acl_listxattr(inode, &buffer, &remaining_size);
1329 err = xattr_list_one(&buffer, &remaining_size, xattr->name);