Home
last modified time | relevance | path

Searched refs:vtable (Results 1 – 12 of 12) sorted by relevance

/Zephyr-Core-3.4.0/tests/lib/fdtable/src/
Dmain.c36 const struct fd_op_vtable *vtable; in ZTEST() local
42 obj = z_get_fd_obj_and_vtable(fd, &vtable, in ZTEST()
56 const struct fd_op_vtable *vtable = 0; in ZTEST() local
57 const struct fd_op_vtable *vtable2 = vtable+1; in ZTEST()
59 int *obj = z_get_fd_obj(fd, vtable, err); /* function being tested */ in ZTEST()
65 vtable = NULL; in ZTEST()
68 z_finalize_fd(fd, obj, vtable); in ZTEST()
70 obj = z_get_fd_obj(-1, vtable, err); /* function being tested */ in ZTEST()
86 const struct fd_op_vtable *vtable; in ZTEST() local
91 int *obj = z_get_fd_obj_and_vtable(fd, &vtable, NULL); in ZTEST()
[all …]
/Zephyr-Core-3.4.0/lib/os/
Dfdtable.c26 const struct fd_op_vtable *vtable; member
43 .vtable = &stdinout_fd_op_vtable,
48 .vtable = &stdinout_fd_op_vtable,
53 .vtable = &stdinout_fd_op_vtable,
91 fdtable[fd].vtable = NULL; in z_fd_unref()
127 void *z_get_fd_obj(int fd, const struct fd_op_vtable *vtable, int err) in z_get_fd_obj() argument
137 if (vtable != NULL && entry->vtable != vtable) { in z_get_fd_obj()
145 static int z_get_fd_by_obj_and_vtable(void *obj, const struct fd_op_vtable *vtable) in z_get_fd_by_obj_and_vtable() argument
150 if (fdtable[fd].obj == obj && fdtable[fd].vtable == vtable) { in z_get_fd_by_obj_and_vtable()
159 bool z_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock, in z_get_obj_lock_and_cond() argument
[all …]
/Zephyr-Core-3.4.0/include/zephyr/sys/
Dfdtable.h52 void z_finalize_fd(int fd, void *obj, const struct fd_op_vtable *vtable);
65 int z_alloc_fd(void *obj, const struct fd_op_vtable *vtable);
93 void *z_get_fd_obj(int fd, const struct fd_op_vtable *vtable, int err);
107 void *z_get_fd_obj_and_vtable(int fd, const struct fd_op_vtable **vtable,
125 bool z_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock,
140 static inline int z_fdtable_call_ioctl(const struct fd_op_vtable *vtable, void *obj, in z_fdtable_call_ioctl() argument
147 res = vtable->ioctl(obj, request, args); in z_fdtable_call_ioctl()
/Zephyr-Core-3.4.0/subsys/net/lib/sockets/
Dsocket_dispatcher.c54 const struct socket_op_vtable *vtable; in sock_dispatch_socket() local
64 (const struct fd_op_vtable **)&vtable, in sock_dispatch_socket()
72 z_finalize_fd(fd, obj, (const struct fd_op_vtable *)vtable); in sock_dispatch_socket()
143 const struct fd_op_vtable *vtable; in sock_dispatch_read_vmeth() local
151 new_obj = z_get_fd_obj_and_vtable(fd, &vtable, NULL); in sock_dispatch_read_vmeth()
156 return vtable->read(new_obj, buffer, count); in sock_dispatch_read_vmeth()
163 const struct fd_op_vtable *vtable; in sock_dispatch_write_vmeth() local
171 new_obj = z_get_fd_obj_and_vtable(fd, &vtable, NULL); in sock_dispatch_write_vmeth()
176 return vtable->write(new_obj, buffer, count); in sock_dispatch_write_vmeth()
183 const struct fd_op_vtable *vtable; in sock_dispatch_ioctl_vmeth() local
[all …]
Dsockets.c41 const struct socket_op_vtable *vtable; \
46 obj = get_sock_vtable(sock, &vtable, &lock); \
52 if (vtable->fn == NULL) { \
59 ret = vtable->fn(obj, __VA_ARGS__); \
69 const struct socket_op_vtable **vtable, in get_sock_vtable() argument
75 (const struct fd_op_vtable **)vtable, in get_sock_vtable()
280 const struct socket_op_vtable *vtable; in z_impl_zsock_close() local
285 ctx = get_sock_vtable(sock, &vtable, &lock); in z_impl_zsock_close()
295 ret = vtable->fd_vtable.close(ctx); in z_impl_zsock_close()
314 const struct socket_op_vtable *vtable; in z_impl_zsock_shutdown() local
[all …]
Dsockets_tls.c2603 const struct fd_op_vtable *vtable; in ztls_poll_prepare_ctx() local
2628 ctx->sock, (const struct fd_op_vtable **)&vtable, &lock); in ztls_poll_prepare_ctx()
2636 ret = z_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_POLL_PREPARE, in ztls_poll_prepare_ctx()
2747 const struct fd_op_vtable *vtable; in ztls_poll_update_ctx() local
2754 ctx->sock, (const struct fd_op_vtable **)&vtable, &lock); in ztls_poll_update_ctx()
2768 ret = z_fdtable_call_ioctl(vtable, obj, in ztls_poll_update_ctx()
2790 ret = z_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_POLL_UPDATE, in ztls_poll_update_ctx()
2857 const struct fd_op_vtable *vtable; in ztls_poll_offload() local
2893 (const struct fd_op_vtable **)&vtable, in ztls_poll_offload()
2907 ret = z_fdtable_call_ioctl(vtable, ctx, ZFD_IOCTL_POLL_OFFLOAD, in ztls_poll_offload()
[all …]
/Zephyr-Core-3.4.0/drivers/modem/
Dmodem_socket.h68 const struct socket_op_vtable *vtable; member
105 const struct socket_op_vtable *vtable);
Dmodem_socket.c179 (const struct fd_op_vtable *)cfg->vtable); in modem_socket_get()
416 const struct socket_op_vtable *vtable) in modem_socket_init() argument
419 if (cfg == NULL || sockets == NULL || sockets_len < 1 || vtable == NULL) { in modem_socket_init()
429 cfg->vtable = vtable; in modem_socket_init()
/Zephyr-Core-3.4.0/subsys/net/lib/websocket/
Dwebsocket.c455 const struct fd_op_vtable *vtable; in websocket_poll_offload() local
477 (const struct fd_op_vtable **)&vtable, in websocket_poll_offload()
485 ret = z_fdtable_call_ioctl(vtable, ctx, ZFD_IOCTL_POLL_OFFLOAD, in websocket_poll_offload()
519 const struct fd_op_vtable *vtable; in websocket_ioctl_vmeth() local
524 (const struct fd_op_vtable **)&vtable, in websocket_ioctl_vmeth()
532 return vtable->ioctl(core_obj, request, args); in websocket_ioctl_vmeth()
/Zephyr-Core-3.4.0/tests/net/socket/offload_dispatcher/src/
Dmain.c750 const struct fd_op_vtable *vtable; in ZTEST() local
766 obj = z_get_fd_obj_and_vtable(test_sock, &vtable, NULL); in ZTEST()
793 const struct fd_op_vtable *vtable; in ZTEST() local
809 obj = z_get_fd_obj_and_vtable(test_sock, &vtable, NULL); in ZTEST()
/Zephyr-Core-3.4.0/doc/releases/
Drelease-notes-1.14.rst204 * :github:`18021` - Socket vtable can access null pointer callback function
409 * :github:`18021` - Socket vtable can access null pointer callback function
Drelease-notes-2.0.rst731 * :github:`18021` - Socket vtable can access null pointer callback function