Lines Matching defs:handler

47 #define for_each_xattr_handler(handlers, handler)		\
49 for ((handler) = *(handlers)++; \
50 (handler) != NULL; \
51 (handler) = *(handlers)++)
60 const struct xattr_handler *handler;
67 for_each_xattr_handler(handlers, handler) {
70 n = strcmp_prefix(*name, xattr_prefix(handler));
72 if (!handler->prefix ^ !*n) {
78 return handler;
160 * Look for any handler that deals with the specified namespace.
166 const struct xattr_handler *handler;
174 for_each_xattr_handler(handlers, handler) {
175 if (!strncmp(xattr_prefix(handler), XATTR_USER_PREFIX,
189 const struct xattr_handler *handler;
194 handler = xattr_resolve_name(inode, &name);
195 if (IS_ERR(handler))
196 return PTR_ERR(handler);
197 if (!handler->set)
201 return handler->set(handler, idmap, dentry, inode, name, value,
380 const struct xattr_handler *handler;
389 handler = xattr_resolve_name(inode, &name);
390 if (IS_ERR(handler))
391 return PTR_ERR(handler);
392 if (!handler->get)
394 error = handler->get(handler, dentry, inode, name, NULL, 0);
405 error = handler->get(handler, dentry, inode, name, value, error);
414 const struct xattr_handler *handler;
419 handler = xattr_resolve_name(inode, &name);
420 if (IS_ERR(handler))
421 return PTR_ERR(handler);
422 if (!handler->get)
424 return handler->get(handler, dentry, inode, name, value, size);
509 const struct xattr_handler *handler;
514 handler = xattr_resolve_name(inode, &name);
515 if (IS_ERR(handler))
516 return PTR_ERR(handler);
517 if (!handler->set)
519 return handler->set(handler, idmap, dentry, inode, name, NULL, 0,
1002 const struct xattr_handler *handler, **handlers = dentry->d_sb->s_xattr;
1006 for_each_xattr_handler(handlers, handler) {
1007 if (!handler->name || (handler->list && !handler->list(dentry)))
1009 err = xattr_list_one(&buffer, &remaining_size, handler->name);
1021 * @handler: handler of the xattr_handler operation
1024 * The get and set xattr handler operations are called with the remainder of
1025 * the attribute name after skipping the handler's prefix: for example, "foo"
1026 * is passed to the get operation of a handler with prefix "user." to get
1029 * Note: the list xattr handler operation when called from the vfs is passed a
1033 const char *xattr_full_name(const struct xattr_handler *handler,
1036 size_t prefix_len = strlen(xattr_prefix(handler));