/* size which is overflowing or close to SIZE_MAX will become 0 in * PAGE_ALIGN(), checking SIZE_MAX is enough due to the previous * is_power_of_2(), the rest will be handled by vmalloc_user()
*/ if (unlikely(size == SIZE_MAX)) {
kfree(q); return NULL;
}
size = PAGE_ALIGN(size);
q->ring = vmalloc_user(size); if (!q->ring) {
kfree(q); return NULL;
}
q->ring_vmalloc_size = size; return q;
}
void xskq_destroy(struct xsk_queue *q)
{ if (!q) return;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.