Lines Matching refs:ltp
129 static void kobjopen_free(struct kobjopen_tctl *ltp);
130 static void kobjopen_thread(struct kobjopen_tctl *ltp);
3527 struct kobjopen_tctl *ltp = kobjopen_alloc(filename);
3536 kobjopen_thread, ltp, 0, &p0, TS_RUN, maxclsyspri);
3537 sema_p(<p->sema);
3538 Errno = ltp->Errno;
3539 vp = ltp->vp;
3551 kobjopen_free(ltp);
3588 kobjopen_thread(struct kobjopen_tctl *ltp)
3595 ltp->Errno = vn_open(ltp->name, UIO_SYSSPACE, FREAD, 0, &(ltp->vp),
3597 sema_v(<p->sema);
3610 struct kobjopen_tctl *ltp = kmem_zalloc(sizeof (*ltp), KM_SLEEP);
3614 ltp->name = kmem_alloc(strlen(filename) + 1, KM_SLEEP);
3615 bcopy(filename, ltp->name, strlen(filename) + 1);
3616 sema_init(<p->sema, 0, NULL, SEMA_DEFAULT, NULL);
3617 return (ltp);
3624 kobjopen_free(struct kobjopen_tctl *ltp)
3626 sema_destroy(<p->sema);
3627 kmem_free(ltp->name, strlen(ltp->name) + 1);
3628 kmem_free(ltp, sizeof (*ltp));