Home
last modified time | relevance | path

Searched refs:json_resp (Results 1 – 3 of 3) sorted by relevance

/spdk/test/rpc_client/
H A Drpc_client_test.c54 struct spdk_jsonrpc_client_response *json_resp = NULL; in spdk_jsonrpc_client_check_rpc_method() local
73 json_resp = spdk_jsonrpc_client_get_response(client); in spdk_jsonrpc_client_check_rpc_method()
74 if (json_resp == NULL) { in spdk_jsonrpc_client_check_rpc_method()
82 if (json_resp->error != NULL) { in spdk_jsonrpc_client_check_rpc_method()
88 assert(json_resp->result); in spdk_jsonrpc_client_check_rpc_method()
90 rc = get_jsonrpc_method_json_parser(&resp, json_resp->result); in spdk_jsonrpc_client_check_rpc_method()
112 spdk_jsonrpc_client_free_response(json_resp); in spdk_jsonrpc_client_check_rpc_method()
121 struct spdk_jsonrpc_client_response *json_resp = NULL; in spdk_jsonrpc_client_check_null_params_method() local
141 json_resp = spdk_jsonrpc_client_get_response(client); in spdk_jsonrpc_client_check_null_params_method()
142 if (json_resp == NULL) { in spdk_jsonrpc_client_check_null_params_method()
[all …]
/spdk/python/spdk/rpc/
H A Dclient.py268 json_resp = json.loads(ctypes.c_char_p.from_buffer(resp.response).value)
272 if 'error' in json_resp:
274 params["req_id"] = json_resp['id']
278 json.dumps(json_resp['error'], indent=2)])
281 return json_resp['result']
/spdk/app/spdk_top/
H A Dspdk_top.c575 struct spdk_jsonrpc_client_response *json_resp = NULL; in rpc_send_req() local
597 json_resp = spdk_jsonrpc_client_get_response(g_rpc_client); in rpc_send_req()
598 if (json_resp == NULL) { in rpc_send_req()
603 if (json_resp->error != NULL) { in rpc_send_req()
604 spdk_jsonrpc_client_free_response(json_resp); in rpc_send_req()
608 assert(json_resp->result); in rpc_send_req()
610 *resp = json_resp; in rpc_send_req()
733 struct spdk_jsonrpc_client_response *json_resp = NULL; in get_thread_data() local
739 rc = rpc_send_req("thread_get_stats", &json_resp); in get_thread_data()
746 if (rpc_decode_threads_array(json_resp->result, thread_info, &current_threads_count)) { in get_thread_data()
[all …]