Lines Matching +full:family +full:- +full:id
8 * Copyright (c) 2019-2020 Foundries.io
10 * SPDX-License-Identifier: Apache-2.0
27 sa_family_t family; member
34 int id; member
60 /* beginning socket id (modems can set this to 0 or 1 as needed) */
63 /* dynamically assign id when modem socket is allocated */
75 int modem_socket_get(struct modem_socket_config *cfg, int family, int type, int proto);
77 struct modem_socket *modem_socket_from_id(struct modem_socket_config *cfg, int id);
96 * @param base_socket_id The lowest socket id supported by the modem
97 * @param assign_id Dynamically assign modem socket id when allocated using modem_socket_get()
100 * @return -EINVAL if any argument is invalid
113 * @note If socket id is automatically assigned, the socket id will be a value between
115 * Otherwise, the socket id will be assigned to (base_socket_id + socket_len) when allocated.
127 * @brief Check if modem socket id has been assigned
129 * @note An assigned modem socket will have an id between base_socket_id and
133 * @param sock The modem socket for which the id is checked
135 * @return true if the socket id is been assigned
142 * @brief Assign id to modem socket
145 * @param sock The modem socket for which the id will be assigned
146 * @param id The id to assign to the modem socket
148 * @return -EPERM if id has been assigned previously
149 * @return -EINVAL if id is invalid
154 int id);