Lines Matching full:fd

12 /* The thread will test that the refcounting of fd object will
27 int fd = zvfs_reserve_fd(); /* function being tested */ in ZTEST() local
29 zassert_true(fd >= 0, "fd < 0"); in ZTEST()
31 zvfs_free_fd(fd); in ZTEST()
38 int fd = zvfs_reserve_fd(); in ZTEST() local
39 zassert_true(fd >= 0, "fd < 0"); in ZTEST()
42 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, in ZTEST()
47 zvfs_free_fd(fd); in ZTEST()
52 int fd = zvfs_reserve_fd(); in ZTEST() local
53 zassert_true(fd >= 0, "fd < 0"); in ZTEST()
59 int *obj = zvfs_get_fd_obj(fd, vtable, err); /* function being tested */ in ZTEST()
61 /* take branch -- if (_check_fd(fd) < 0) */ in ZTEST()
68 zvfs_finalize_fd(fd, obj, vtable); in ZTEST()
72 zassert_equal_ptr(obj, NULL, "obj is not NULL when fd < 0"); in ZTEST()
73 zassert_equal(errno, EBADF, "fd: out of bounds error"); in ZTEST()
76 obj = zvfs_get_fd_obj(fd, vtable2, err); /* function being tested */ in ZTEST()
81 zvfs_free_fd(fd); in ZTEST()
88 int fd = zvfs_reserve_fd(); in ZTEST() local
89 zassert_true(fd >= 0); in ZTEST()
91 int *obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in ZTEST()
96 zvfs_finalize_fd(fd, obj, vtable); /* function being tested */ in ZTEST()
98 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in ZTEST()
103 zvfs_free_fd(fd); in ZTEST()
111 int fd = zvfs_alloc_fd(obj, vtable); /* function being tested */ in ZTEST() local
112 zassert_true(fd >= 0); in ZTEST()
114 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in ZTEST()
119 zvfs_free_fd(fd); in ZTEST()
126 int fd = zvfs_reserve_fd(); in ZTEST() local
127 zassert_true(fd >= 0); in ZTEST()
129 zvfs_free_fd(fd); /* function being tested */ in ZTEST()
131 int *obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in ZTEST()
141 int fd = POINTER_TO_INT(p1); in test_cb() local
145 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in test_cb()
150 zvfs_free_fd(fd); in test_cb()
152 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, NULL); in test_cb()
154 zassert_equal(errno, EBADF, "fd was found"); in test_cb()
163 zassert_true(shared_fd >= 0, "fd < 0"); in ZTEST()
178 zassert_equal(errno, EBADF, "fd was found"); in ZTEST()