Searched defs:fh (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/tools/scripts/
H A Dhdrchk.py62 fh = open(filename, 'r') variable
67 ret |= hdrchk(fh, lenient=lenient, output=sys.stderr)
68 fh.close()
/illumos-gate/usr/src/uts/common/os/
H A Dfirmload.c66 firmware_handle_free(firmware_handle_t fh) argument
68 kmem_free(fh, sizeof (struct firmware_handle));
80 firmware_handle_t fh; local
87 fh = firmware_handle_alloc();
89 fh->fh_buf = kobj_open_path(path, 1, 0);
92 if (fh->fh_buf == (struct _buf *)-1) {
93 firmware_handle_free(fh);
97 error = kobj_get_filesize(fh->fh_buf, (uint64_t *)&fh->fh_size);
99 kobj_close_file(fh
114 firmware_close(firmware_handle_t fh) argument
129 firmware_get_size(firmware_handle_t fh) argument
142 firmware_read(firmware_handle_t fh, off_t offset, void *buf, size_t len) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_subr.c50 remote_lock(char *fshost, caddr_t fh) argument
72 rlm_args.alock.fh.n_len = sizeof (fhandle_t);
73 rlm_args.alock.fh.n_bytes = fh;
/illumos-gate/usr/src/uts/common/tnf/
H A Dtnf_buf.c74 tnfw_b_alloc_block(tnf_buf_file_header_t *fh, enum tnf_alloc_mode istag) argument
88 lp = &fh->lock;
102 bcount = fh->com.block_count; /* total block count */
104 gen = fh->next_alloc.gen;
105 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO];
124 ((char *)fh + (bn << TNF_BLOCK_SHIFT));
134 gen = fh->next_alloc.gen;
135 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO];
151 tmp_gen = fh->next_alloc.gen;
152 tmp_bn = fh
310 tnf_buf_file_header_t *fh; local
344 tnf_buf_file_header_t *fh; local
[all...]
/illumos-gate/usr/src/uts/common/klm/
H A Dklmops.c81 u_offset_t off, struct cred *cr, struct netobj *fh,
85 cr, fh, flcb, NLM_VERS));
94 u_offset_t off, struct cred *cr, struct netobj *fh,
99 cr, fh, flcb, NLM4_VERS);
109 struct shrlock *shr, int flags, struct netobj *fh)
111 return (nlm_shrlock(vp, cmd, shr, flags, fh, NLM_VERSX));
120 struct shrlock *shr, int flags, struct netobj *fh)
122 return (nlm_shrlock(vp, cmd, shr, flags, fh, NLM4_VERS));
80 lm_frlock(struct vnode *vp, int cmd, struct flock64 *flk, int flags, u_offset_t off, struct cred *cr, struct netobj *fh, struct flk_callback *flcb) argument
93 lm4_frlock(struct vnode *vp, int cmd, struct flock64 *flk, int flags, u_offset_t off, struct cred *cr, struct netobj *fh, struct flk_callback *flcb) argument
108 lm_shrlock(struct vnode *vp, int cmd, struct shrlock *shr, int flags, struct netobj *fh) argument
119 lm4_shrlock(struct vnode *vp, int cmd, struct shrlock *shr, int flags, struct netobj *fh) argument
H A Dnlm_service.c170 lm_fhtovp(fhandle3_t *fh) argument
176 vfsp = getvfs(&fh->_fh3_fsid);
181 error = VFS_VGET(vfsp, &vp, (fid_t *)&(fh->_fh3_len));
195 nlm_fh_to_vp(struct netobj *fh) argument
204 if (fh->n_len < sizeof (fhandle_t))
209 fhp = (fhandle3_t *)fh->n_bytes;
230 nlm_fh_to_vhold(struct nlm_host *hostp, struct netobj *fh) argument
235 vp = nlm_fh_to_vp(fh);
354 vp = nlm_fh_to_vp(&argp->alock.fh);
530 nvp = nlm_fh_to_vhold(host, &argp->alock.fh);
[all...]
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c107 volatile tnf_buf_file_header_t *fh; local
130 fh = (volatile tnf_buf_file_header_t *)_tnfw_b_control->tnf_buffer;
135 while (b != fh->com.block_size) {
140 while (b < fh->com.block_count) {
150 * first. fh->next_tag_alloc is only a hint; it is updated
153 if (istag && fh->next_tag_alloc < TNFW_B_DATA_BLOCK_BEGIN) {
154 i = fh->next_tag_alloc;
157 block = (tnf_block_header_t *) ((char *) fh + i);
161 i += fh->com.block_size;
164 if (i > fh
345 tnf_buf_file_header_t *fh = (tnf_buf_file_header_t *)buf; local
442 volatile tnf_buf_file_header_t *fh; local
560 volatile tnf_buf_file_header_t *fh = local
629 volatile tnf_buf_file_header_t *fh = local
674 volatile tnf_buf_file_header_t *fh = local
692 volatile tnf_buf_file_header_t *fh = local
[all...]
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dmount.h75 caddr_t fh; /* File handle to be mounted */ member in struct:nfs_args
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dmount.c78 caddr_t fh; /* File handle to be mounted */ member in struct:nfsarg
146 na->fh = nfsa->fh;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_mount.c321 int fh; local
324 fh = sum_filehandle(NFS_FHSIZE);
325 (void) sprintf(buff, " FH=%04X", fh & 0xFFFF);
333 int fh; local
336 fh = sum_filehandle(NFS_FHSIZE);
338 (void) sprintf(get_line(0, 0), "File handle = [%04X]", fh & 0xFFFF);
412 int fh; local
416 fh = sum_filehandle(len);
417 (void) sprintf(buff, " FH=%04X", fh & 0xFFFF);
426 int fh; local
[all...]
H A Dsnoop_nfs.c136 char *fh; local
161 fh = sum_nfsfh();
163 fh,
167 fh = sum_nfsfh();
173 fh, off, sz);
176 fh = sum_nfsfh();
178 fh,
181 fh = sum_nfsfh();
183 fh,
187 fh
490 int fh = 0; local
503 int fh; local
515 int fh; local
[all...]
H A Dsnoop_nfs3.c167 char *fh, *name; local
191 fh = sum_nfsfh3();
196 fh, off, sz);
199 fh = sum_nfsfh3();
205 fh, off, sz, getxdr_u_long());
208 fh = sum_nfsfh3();
210 fh, sum_access());
216 fh = sum_nfsfh3();
218 fh, getxdr_string(buff,
222 fh
787 int fh; local
801 int fh; local
[all...]
H A Dsnoop_nfs_acl.c200 char *fh; local
215 fh = sum_nfsfh();
217 (void) sprintf(line, "%s mask=0x%lx", fh, mask);
226 fh = sum_nfsfh();
227 (void) sprintf(line, "%s (%s)", fh,
231 fh = sum_nfsfh();
232 (void) sprintf(line, "%s create=%s", fh,
294 char *fh; local
309 fh = sum_nfsfh3();
311 (void) sprintf(line, "%s mask=0x%lx", fh, mas
369 char *fh; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dfhtab.h32 * Support for the fh mapping file for nfslog.
79 fhandle_t fh; /* filehandle for this component */ member in struct:fhlist_ent
90 #define NAME_DELETED 0x02 /* is the dir info still valid for this fh? */
91 #define PUBLIC_PATH 0x04 /* is the dir info still valid for this fh? */
141 int db_add(char *fhpath, fhandle_t *dfh, char *name, fhandle_t *fh,
143 fhlist_ent *db_lookup(char *fhpath, fhandle_t *fh, fhlist_ent *fhrecp,
147 int db_delete(char *fhpath, fhandle_t *fh);
153 char *nfslog_get_path(fhandle_t *fh, char *name, char *fhpath, char *prtstr);
158 * Macro to determine which fhandle to use - input or public fh
160 #define NFSLOG_GET_FHANDLE2(fh) \
[all...]
H A Dnfs_log_xdr.c147 xdr_fhandle(XDR *xdrs, fhandle_t *fh) argument
152 return (xdr_opaque(xdrs, (caddr_t)fh, NFS_FHSIZE));
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_usr.c364 uint16_t fh; local
400 fh = (uint16_t)sdp->sd_smbfid;
402 fh = (uint16_t)ioc->ioc_fh;
415 err = smb_rwuio(ssp, fh, rw, &auio, &scred, 0);
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_list.c237 scan_aliases(FILE *fh) argument
242 while (fgets(linebuf, sizeof (linebuf), fh) != NULL) {
261 FILE *fh; local
284 fh = fopen(PATH_ALIASES, "r");
285 if (fh == NULL) {
289 scan_aliases(fh);
290 (void) fclose(fh);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_client_secinfo.c662 /* put root fh */
910 * i.e. (secinfo) PUTFH (fh), SECINFO nm
913 nfs4_secinfo_fh_otw(mntinfo4_t *mi, nfs4_sharedfh_t *fh, char *nm, cred_t *cr) argument
930 /* putfh fh */
932 argop[0].nfs_argop4_u.opcputfh.sfh = fh;
H A Dnfs3_vfsops.c194 nfs3_free_args(struct nfs_args *nargs, nfs_fhandle *fh) argument
197 if (fh)
198 kmem_free(fh, sizeof (*fh));
209 if (nargs->fh) {
210 kmem_free(nargs->fh, strlen(nargs->fh) + 1);
211 nargs->fh = NULL;
250 nfs3_copyin(char *data, int datalen, struct nfs_args *nargs, nfs_fhandle *fh) argument
361 if (copyin(STRUCT_FGETP(args, fh), f
1610 nfs_fh3 fh; local
[all...]
H A Dnfs_log_xdr.c826 !xdr_post_op_fh3(xdrs, &infop->fh) ||
909 nfs_fh3 fh; local
912 fh = *objp;
913 fh.fh3_len = NFS_FHMAXDATA;
914 fh.fh3_xlen = NFS_FHMAXDATA;
915 fh.fh3_length = NFS3_OLDFHSIZE;
916 return (xdr_nfs_fh3_server(xdrs, &fh));
H A Dnfs_vfsops.c197 nfs_free_args(struct nfs_args *nargs, nfs_fhandle *fh) argument
200 if (fh)
201 kmem_free(fh, sizeof (*fh));
217 if (nargs->fh) {
218 kmem_free(nargs->fh, strlen(nargs->fh) + 1);
219 nargs->fh = NULL;
258 nfs_copyin(char *data, int datalen, struct nfs_args *nargs, nfs_fhandle *fh) argument
380 if (copyin(STRUCT_FGETP(args, fh),
[all...]
/illumos-gate/usr/src/uts/common/nfs/
H A Dmount.h73 caddr_t fh; /* File handle to be mounted */ member in struct:nfs_args
109 caddr32_t fh; /* File handle to be mounted */ member in struct:nfs_args32
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dpxe.c430 u_char fh[NFS_FHSIZE]; member in struct:nfs_iodesc
446 if ((error = nfs_getrootfh(d, rootpath, nfs_root_node.fh)) != 0)
455 u_char *fh; local
466 fh = &nfs_root_node.fh[0];
470 sprintf(cp, "%02x", fh[i]);
482 u_char fh[NFS_V3MAXFHSIZE]; member in struct:nfs_iodesc
499 nfs_root_node.fh)) != 0) {
510 u_char *fh; local
521 fh
[all...]
/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldom.c176 int fh; local
180 if ((fh = open("/devices/pseudo/mdesc@0:mdesc", O_RDONLY, 0)) < 0)
183 if (ioctl(fh, MDESCIOCGSZ, &size) < 0) {
184 (void) close(fh);
190 if (read(fh, bufp, size) < 0) {
192 (void) close(fh);
195 (void) close(fh);
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_traverse.c154 fs_fhandle_t *fh)
167 dent->fd_fh = *fh;
203 fs_getstat(char *path, fs_fhandle_t *fh, struct stat64 *st) argument
208 fh->fh_fid = st->st_ino;
211 fh->fh_fpath = NULL;
213 fh->fh_fpath = strdup(path);
228 fs_fhandle_t fh; local
255 (void) memset(&fh, 0, sizeof (fs_fhandle_t));
262 fh.fh_fid = st.st_ino;
268 (char *)ptr->d_name, n_entries, &st, &fh) !
152 fs_populate_dents(void *arg, int namelen, char *name, long *countp, struct stat64 *attr, fs_fhandle_t *fh) argument
[all...]

Completed in 103 milliseconds

123