Home
last modified time | relevance | path

Searched refs:fdbuf (Results 1 – 5 of 5) sorted by relevance

/titanic_50/usr/src/uts/common/sys/
H A Dfdbuffer.h61 typedef void (*fdb_iodone_t)(struct fdbuffer *fdbuf, void *kargp, buf_t *bp);
144 extern void fdb_set_iofunc(fdbuffer_t *fdbuf, fdb_iodone_t iofunc, void *ioarg,
146 extern fdb_holes_t *fdb_get_holes(fdbuffer_t *fdbuf);
147 extern int fdb_get_error(fdbuffer_t *fdbuf);
148 extern void fdb_free(fdbuffer_t *fdbuf);
153 extern void fdb_add_hole(fdbuffer_t *fdbuf, u_offset_t off, size_t len);
154 extern buf_t *fdb_iosetup(fdbuffer_t *fdbuf, u_offset_t off, size_t len,
157 extern void fdb_ioerrdone(fdbuffer_t *fdbuf, int error);
H A Dsocketvar.h808 struct fdbuf { struct
816 #define FDBUF_HDRSIZE (sizeof (struct fdbuf) - sizeof (struct file *)) argument
901 extern void fdbuf_free(struct fdbuf *);
902 extern mblk_t *fdbuf_allocmsg(int, struct fdbuf *);
903 extern int fdbuf_create(void *, int, struct fdbuf **);
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c27 struct stat fdbuf; in safechown() local
33 if (fstat(fd, &fdbuf)) { in safechown()
39 if (!S_ISDIR(fdbuf.st_mode) && fdbuf.st_nlink != 1) { in safechown()
50 if (fdbuf.st_ino != lbuf.st_ino || fdbuf.st_dev != lbuf.st_dev || in safechown()
51 fdbuf.st_mode != lbuf.st_mode) { in safechown()
/titanic_50/usr/src/uts/common/fs/sockfs/
H A Dsocksubr.c683 fdbuf_free(struct fdbuf *fdbuf) in fdbuf_free() argument
688 dprint(1, ("fdbuf_free: %d fds\n", fdbuf->fd_numfd)); in fdbuf_free()
689 for (i = 0; i < fdbuf->fd_numfd; i++) { in fdbuf_free()
697 bcopy((char *)&fdbuf->fd_fds[i], (char *)&fp, sizeof (fp)); in fdbuf_free()
701 if (fdbuf->fd_ebuf != NULL) in fdbuf_free()
702 kmem_free(fdbuf->fd_ebuf, fdbuf->fd_ebuflen); in fdbuf_free()
703 kmem_free(fdbuf, fdbuf->fd_size); in fdbuf_free()
711 fdbuf_allocmsg(int size, struct fdbuf *fdbuf) in fdbuf_allocmsg() argument
716 dprint(1, ("fdbuf_allocmsg: size %d, %d fds\n", size, fdbuf->fd_numfd)); in fdbuf_allocmsg()
718 fdbuf->fd_ebuf = (caddr_t)buf; in fdbuf_allocmsg()
[all …]
H A Dsocktpi.c3657 struct fdbuf *fdbuf; in sosend_dgramcmsg() local
3752 error = fdbuf_create(fds, fdlen, &fdbuf); in sosend_dgramcmsg()
3755 mp = fdbuf_allocmsg(size, fdbuf); in sosend_dgramcmsg()
3771 ASSERT(fdbuf != NULL); in sosend_dgramcmsg()
3774 toh.len = fdbuf->fd_size + in sosend_dgramcmsg()
3778 soappendmsg(mp, fdbuf, fdbuf->fd_size); in sosend_dgramcmsg()
3827 struct fdbuf *fdbuf; in sosend_svccmsg() local
3885 error = fdbuf_create(fds, fdlen, &fdbuf); in sosend_svccmsg()
3888 mp = fdbuf_allocmsg(size, fdbuf); in sosend_svccmsg()
3902 ASSERT(fdbuf != NULL); in sosend_svccmsg()
[all …]