Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/sun4v/io/
H A Dplatsvc.c471 size_t reason_length; in ps_suspend_send_response() local
477 reason_length = 0; in ps_suspend_send_response()
480 reason_length = strnlen(reason, SUSPEND_MAX_REASON_SIZE - 1); in ps_suspend_send_response()
481 ASSERT(reason[reason_length] == '\0'); in ps_suspend_send_response()
483 reason_length++; in ps_suspend_send_response()
487 kmem_zalloc(sizeof (platsvc_suspend_resp_t) + reason_length, in ps_suspend_send_response()
493 if (reason_length > 0) { in ps_suspend_send_response()
494 bcopy(reason, &resp->reason, reason_length - 1); in ps_suspend_send_response()
496 resp->reason[reason_length] = '\0'; in ps_suspend_send_response()
502 sizeof (platsvc_suspend_resp_t) + reason_length); in ps_suspend_send_response()
[all …]