| 936 | } |
| 937 | |
| 938 | cs_error_t cmap_iter_finalize( |
| 939 | cmap_handle_t handle, |
| 940 | cmap_iter_handle_t iter_handle) |
| 941 | { |
| 942 | cs_error_t error; |
| 943 | struct iovec iov; |
| 944 | struct cmap_inst *cmap_inst; |
| 945 | struct req_lib_cmap_iter_finalize req_lib_cmap_iter_finalize; |
| 946 | struct res_lib_cmap_iter_finalize res_lib_cmap_iter_finalize; |
| 947 | |
| 948 | error = hdb_error_to_cs(hdb_handle_get (&cmap_handle_t_db, handle, (void *)&cmap_inst)); |
| 949 | if (error != CS_OK) { |
| 950 | return (error); |
| 951 | } |
| 952 | |
| 953 | memset(&req_lib_cmap_iter_finalize, 0, sizeof(req_lib_cmap_iter_finalize)); |
| 954 | req_lib_cmap_iter_finalize.header.size = sizeof(req_lib_cmap_iter_finalize); |
| 955 | req_lib_cmap_iter_finalize.header.id = MESSAGE_REQ_CMAP_ITER_FINALIZE; |
| 956 | req_lib_cmap_iter_finalize.iter_handle = iter_handle; |
| 957 | |
| 958 | iov.iov_base = (char *)&req_lib_cmap_iter_finalize; |
| 959 | iov.iov_len = sizeof(req_lib_cmap_iter_finalize); |
| 960 | |
| 961 | error = qb_to_cs_error(qb_ipcc_sendv_recv( |
| 962 | cmap_inst->c, |
| 963 | &iov, |
| 964 | 1, |
| 965 | &res_lib_cmap_iter_finalize, |
| 966 | sizeof (struct res_lib_cmap_iter_finalize), CS_IPC_TIMEOUT_MS)); |
| 967 | |
| 968 | if (error == CS_OK) { |
| 969 | error = res_lib_cmap_iter_finalize.header.error; |
| 970 | } |
| 971 | |
| 972 | (void)hdb_handle_put (&cmap_handle_t_db, handle); |
| 973 | |
| 974 | return (error); |
| 975 | } |
| 976 | |
| 977 | cs_error_t cmap_track_add( |
| 978 | cmap_handle_t handle, |
no test coverage detected