Searched refs:fileglob (Results 1 - 22 of 22) sorted by relevance

/xnu-2782.1.97/osfmk/kern/
H A Dipc_misc.h32 struct fileglob;
33 ipc_port_t fileport_alloc(struct fileglob *);
34 struct fileglob *fileport_port_to_fileglob(ipc_port_t);
37 int (*)(mach_port_name_t, struct fileglob *, void *), void *, int *);
39 int (*)(mach_port_name_t, struct fileglob *, void *), void *);
H A Dipc_misc.c39 extern void fileport_releasefg(struct fileglob *);
44 * Description: Obtain a send right for the given fileglob, which must be
47 * Parameters: fg A fileglob.
49 * Returns: Port of type IKOT_FILEPORT with fileglob set as its kobject.
53 fileport_alloc(struct fileglob *fg)
82 * Description: Obtain the fileglob associated with a given port.
87 * fileglob.
88 * !NULL The fileglob that is associated with the
93 struct fileglob *
96 struct fileglob *f
[all...]
/xnu-2782.1.97/security/
H A Dmac_file.c64 mac_file_label_init(struct fileglob *fg)
79 mac_file_label_associate(struct ucred *cred, struct fileglob *fg)
86 mac_file_label_destroy(struct fileglob *fg)
103 mac_file_check_dup(struct ucred *cred, struct fileglob *fg, int newfd)
112 mac_file_check_fcntl(struct ucred *cred, struct fileglob *fg, int cmd,
122 mac_file_check_ioctl(struct ucred *cred, struct fileglob *fg, u_int cmd)
131 mac_file_check_inherit(struct ucred *cred, struct fileglob *fg)
140 mac_file_check_receive(struct ucred *cred, struct fileglob *fg)
149 mac_file_check_get_offset(struct ucred *cred, struct fileglob *fg)
158 mac_file_check_change_offset(struct ucred *cred, struct fileglob *f
[all...]
H A Dmac_framework.h91 struct fileglob;
187 int mac_file_check_change_offset(kauth_cred_t cred, struct fileglob *fg);
189 int mac_file_check_dup(kauth_cred_t cred, struct fileglob *fg, int newfd);
190 int mac_file_check_fcntl(kauth_cred_t cred, struct fileglob *fg, int cmd,
192 int mac_file_check_get(kauth_cred_t cred, struct fileglob *fg,
194 int mac_file_check_get_offset(kauth_cred_t cred, struct fileglob *fg);
195 int mac_file_check_inherit(kauth_cred_t cred, struct fileglob *fg);
196 int mac_file_check_ioctl(kauth_cred_t cred, struct fileglob *fg,
198 int mac_file_check_lock(kauth_cred_t cred, struct fileglob *fg, int op,
200 int mac_file_check_mmap(kauth_cred_t cred, struct fileglob *f
[all...]
H A Dmac_policy.h93 struct fileglob;
707 struct fileglob *fg,
731 duplicate the fileglob structure represented by fg and as file
739 struct fileglob *fg,
759 struct fileglob *fg,
779 struct fileglob *fg,
797 struct fileglob *fg,
807 inherit the fileglob structure represented by fg.
814 struct fileglob *fg,
837 struct fileglob *f
[all...]
/xnu-2782.1.97/bsd/sys/
H A Dfile_internal.h94 struct fileglob * f_fglob;
151 #define FG_TERM 0x01 /* the fileglob is terminating .. */
154 #define FG_RMMSGQ 0x08 /* the fileglob is being removed from msgqueue */
155 #define FG_WRMMSGQ 0x10 /* wait for the fileglob to be removed from msgqueue */
156 #define FG_PORTMADE 0x20 /* a port was at some point created for this fileglob */
161 struct fileglob { struct
162 LIST_ENTRY(fileglob) f_msglist;/* list of active files */
180 int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
195 LIST_HEAD(fmsglist, fileglob);
211 int fo_close(struct fileglob *f
[all...]
H A Dcodesign.h193 struct fileglob;
217 const char * csfg_get_teamid(struct fileglob *);
218 int csfg_get_path(struct fileglob *, char *, int *);
219 int csfg_get_platform_binary(struct fileglob *);
/xnu-2782.1.97/bsd/kern/
H A Duipc_usrreq.c169 static void unp_scan(struct mbuf *, void (*)(struct fileglob *));
170 static void unp_mark(struct fileglob *);
171 static void unp_discard(struct fileglob *);
172 static void unp_discard_fdlocked(struct fileglob *, proc_t);
1870 struct fileglob **rp = (struct fileglob **)(cm + 1);
1873 struct fileglob *fg;
1978 struct fileglob **rp;
2008 rp = (struct fileglob **)(cm + 1);
2010 /* On K64 we need to walk backwards because a fileglob * i
[all...]
H A Dkern_cs.c615 * fileglob fg
618 csfg_get_platform_binary(struct fileglob *fg)
655 * the teamid for the fileglob fg
658 csfg_get_teamid(struct fileglob *fg)
702 * When calling this, the fileglob
704 * a reference on the fileglob or fileproc
707 csfg_get_path(struct fileglob *fg, char *path, int *len)
H A Dsys_socket.c97 static int soo_close(struct fileglob *, vfs_context_t ctx);
421 soo_close(struct fileglob *fg, __unused vfs_context_t ctx)
H A Dkern_descrip.c137 void fg_free(struct fileglob *fg);
139 void fileport_releasefg(struct fileglob *fg);
917 struct fileglob *fg = fp->f_fglob;
4399 struct fileglob *fg;
4438 MALLOC_ZONE(fg, struct fileglob *, sizeof(struct fileglob), M_FILEGLOB, M_WAITOK);
4445 bzero(fg, sizeof(struct fileglob));
4486 * drop the credential reference, if the fileglob has one, and
4489 * Parameters: fg Pointer to fileglob to be
4495 fg_free(struct fileglob *f
[all...]
H A Dposix_sem.c177 static int psem_closefile (struct fileglob *fp, vfs_context_t ctx);
1032 psem_closefile(struct fileglob *fg, __unused vfs_context_t ctx)
H A Dposix_shm.c182 static int pshm_closefile (struct fileglob *fg, vfs_context_t ctx);
1199 pshm_closefile(struct fileglob *fg, __unused vfs_context_t ctx)
H A Dkern_malloc.c275 "fileglob", /* 99 M_FILEGLOB */
479 { SOS(fileglob), KMZ_CREATEZONE, TRUE }, /* 99 M_FILEGLOB */
H A Dsys_pipe.c164 static int pipe_close(struct fileglob *fg, vfs_context_t ctx);
1240 pipe_close(struct fileglob *fg, __unused vfs_context_t ctx)
H A Dproc_info.c431 __unused struct fileglob *fg, void *arg)
445 proc_fileport_fdtype(mach_port_name_t name, struct fileglob *fg, void *arg)
1950 struct fileglob *fg, void *arg)
H A Dkern_event.c127 static int kqueue_close(struct fileglob *fg, vfs_context_t ctx);
1401 * assume we inherit a use count on the kq fileglob.
2402 kqueue_close(struct fileglob *fg, __unused vfs_context_t ctx)
H A Dkern_exec.c3820 struct fileglob *fg = fp->f_fglob;
/xnu-2782.1.97/bsd/dev/dtrace/scripts/
H A Dio.d136 * the fds[] array or a translated fileglob *. Note that the various open
197 translator fileinfo_t < struct fileglob *F > {
242 (struct fileglob *)(curproc->p_fd->fd_ofiles[fd]->f_fglob) :
243 (struct fileglob *)NULL);
/xnu-2782.1.97/bsd/miscfs/fifofs/
H A Dfifo_vnops.c372 struct fileglob filefg;
398 struct fileglob filefg;
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_vnops.c120 static int vn_closefile(struct fileglob *fp, vfs_context_t ctx);
908 vn_offset_lock(struct fileglob *fg)
921 vn_offset_unlock(struct fileglob *fg)
1477 vn_closefile(struct fileglob *fg, vfs_context_t ctx)
H A Dvfs_fsevents.c1818 fseventsf_close(struct fileglob *fg, __unused vfs_context_t ctx)

Completed in 207 milliseconds