2 .\" Copyright (c) 1999 Robert N. M. Watson
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/share/man/man9/VOP_SETEXTATTR.9,v 1.1.2.3 2001/12/17 11:30:18 ru Exp $
33 .Nd set named extended attribute for a vnode
39 .Fn VOP_SETEXTATTR "struct vnode *vp" "char *name" "struct uio *uio" "struct ucred *cred" "struct proc *p"
41 This vnode call may be used to set specific named extended attribute for a
47 the vnode of the file or directory
49 pointer to a null-terminated character string containing the attribute name
51 the location of the data to be read or written
53 the user credentials to use in authorizing the request
55 the process setting the extended attribute
58 The uio structure is used in a manner similar to the argument of the same
61 However, as extended attributes provide a strict "name=value" semantic,
62 non-zero offsets will be rejected.
68 to indicate that the specified extended attribute should be deleted.
74 to indicate that access control checks are not to be performed, if possible.
77 setting might be used to allow the kernel to authorize extended attribute
78 changes that the active process might not be permitted to make.
80 Extended attribute semantics may vary by file system implementing the call.
81 More information on extended attributes may be found in
84 The vnode will be locked on entry and should remain locked on return.
86 If the extended attribute is successfully set, then zero is returned.
87 Otherwise, an appropriate error code is returned.
93 The request was not valid in this file system for the specified vnode and
96 Insufficient memory available to fulfill request
98 The uio structure refers to an invalid userspace address
100 The name or uio argument is invalid
102 The file system does not support
105 The file system is out of space
107 The file system is read-only
114 This man page was written by