struct onload_stat
{
int32_t stack_id;
char* stack_name;
int32_t endpoint_id;
int32_t endpoint_state;
};
extern int onload_fd_stat(int fd, struct onload_stat* stat);
Description
Retrieves internal details about an accelerated socket.
Definition
See above.
Formal Parameters
See above.
Return Value
0 socket is not accelerated
1 socket is accelerated
-ENOMEM when memory cannot be allocated
Notes
When calling free()
on
stack_name
use the (char *) because memory is allocated using malloc.
This function will call malloc()
and so should never be called from any other function requiring a malloc lock.
Note: Can be used to check if a fd is accelerated without allocating memory if stat is declared as NULL.