Lines Matching defs:of
4 * The contents of this file are subject to the terms of the
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
17 * information: Portions Copyright [yyyy] [name of copyright owner]
30 * This is a simplified diagram showing the relationship between most of the
98 * - the odir exists in the list of odirs of its tree
105 * - the odir exists in the list of odirs of its tree.
114 * - the odir exists in the list of odirs of its tree.
120 * - the odir exists in the list of odirs of its tree.
121 * - there are no users of the odir (refcnt == 0)
128 * The state machine of the odir structures is controlled by 3 elements:
129 * - The list of odirs of the tree it belongs to.
134 * and there's a lock embedded in the list of odirs of a tree. To
136 * To insert the odir into the list of odirs of the tree and to remove
139 * In order to avoid deadlocks, when both (mutex and lock of the odir
147 * add it into the tree's list of odirs.
150 * smb_odir_openfh(smb_ofile_t *of)
152 * existing open handle (from a prior open of the directory).
158 * and add it into the tree's list of odirs.
163 * list of odirs. Place a hold on the odir.
169 * Find the next directory entry in the odir. Return the details of
173 * Find the next named stream entry in the odir. Return the details of
178 * The caller of close must have a hold on the odir being closed.
190 * the filename or match pattern and, in the case of smb_odir_read_fileinfo(),
193 * The odir maintains a buffer (d_buf) of directory entries read from
196 * the end of the buffer has been reached, and also when a new client request
200 * be in one of two formats. If the file system supports extended directory
218 * is the name of the directory entry but the attributes are the attribites
219 * of the file that is the target of the link. If the link target cannot
220 * be found the attributes returned are the attributes of the link itself.
225 * then be used to obtain the name and size of named stream files.
229 * A directory search often consists of multiple client requests: an initial
233 * number of entries from the odir, then release the odir and return.
234 * A find_next request will lookup the odir and read its desired number of
236 * At the end of the search the find_close request will close the odir.
240 * (cookies) at the end of a request, and to specify which resume point
241 * (cookie) to restart from at the beginning of the next search.
333 * Create an odir representing the directory already opened on "of".
342 smb_ofile_t *of = sr->fid_ofile;
346 if (of->f_node == NULL || !smb_node_is_dir(of->f_node))
349 if ((of->f_granted_access & FILE_LIST_DIRECTORY) == 0)
352 *odp = smb_odir_create(sr, of->f_node, pattern, sattr, 0, of->f_cr);
441 * a refcnt of 0, change the state to SMB_ODIR_STATE_CLOSED and post the
583 * - If at end of dir, eof will be B_TRUE.
1024 * is empty or we've reached the end of it), read the next set of
1028 * directory entries as a buffer of edirent_t structure. Others will
1029 * return a buffer of dirent64_t structures. For simplicity translate
1139 * to use its attributes in place of those of the files's.
1140 * If we fail to lookup the target of the link we use the original
1256 * shortname is used as 'name', in place of odirent->od_name.
1259 * to use its attributes in place of those of the files's.
1260 * If we fail to lookup the target of the link we use the original