Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axboe/liburing
/ t_aligned_alloc
Function
t_aligned_alloc
examples/helpers.c:73–81 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
71
}
72
73
void *t_aligned_alloc(size_t alignment, size_t size)
74
{
75
void *ret;
76
77
if (posix_memalign(&ret, alignment, size))
78
return NULL;
79
80
return ret;
81
}
82
83
void t_error(int status, int errnum, const char *format, ...)
84
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected