Lines Matching defs:handler

46 #define for_each_xattr_handler(handlers, handler)		\
48 for ((handler) = *(handlers)++; \
49 (handler) != NULL; \
50 (handler) = *(handlers)++)
59 const struct xattr_handler *handler;
66 for_each_xattr_handler(handlers, handler) {
69 n = strcmp_prefix(*name, xattr_prefix(handler));
71 if (!handler->prefix ^ !*n) {
77 return handler;
159 * Look for any handler that deals with the specified namespace.
165 const struct xattr_handler *handler;
173 for_each_xattr_handler(handlers, handler) {
174 if (!strncmp(xattr_prefix(handler), XATTR_USER_PREFIX,
188 const struct xattr_handler *handler;
193 handler = xattr_resolve_name(inode, &name);
194 if (IS_ERR(handler))
195 return PTR_ERR(handler);
196 if (!handler->set)
200 return handler->set(handler, idmap, dentry, inode, name, value,
379 const struct xattr_handler *handler;
388 handler = xattr_resolve_name(inode, &name);
389 if (IS_ERR(handler))
390 return PTR_ERR(handler);
391 if (!handler->get)
393 error = handler->get(handler, dentry, inode, name, NULL, 0);
404 error = handler->get(handler, dentry, inode, name, value, error);
413 const struct xattr_handler *handler;
418 handler = xattr_resolve_name(inode, &name);
419 if (IS_ERR(handler))
420 return PTR_ERR(handler);
421 if (!handler->get)
423 return handler->get(handler, dentry, inode, name, value, size);
508 const struct xattr_handler *handler;
513 handler = xattr_resolve_name(inode, &name);
514 if (IS_ERR(handler))
515 return PTR_ERR(handler);
516 if (!handler->set)
518 return handler->set(handler, idmap, dentry, inode, name, NULL, 0,
1001 const struct xattr_handler *handler, * const *handlers = dentry->d_sb->s_xattr;
1005 for_each_xattr_handler(handlers, handler) {
1006 if (!handler->name || (handler->list && !handler->list(dentry)))
1008 err = xattr_list_one(&buffer, &remaining_size, handler->name);
1020 * @handler: handler of the xattr_handler operation
1023 * The get and set xattr handler operations are called with the remainder of
1024 * the attribute name after skipping the handler's prefix: for example, "foo"
1025 * is passed to the get operation of a handler with prefix "user." to get
1028 * Note: the list xattr handler operation when called from the vfs is passed a
1032 const char *xattr_full_name(const struct xattr_handler *handler,
1035 size_t prefix_len = strlen(xattr_prefix(handler));