/* The user holds a ref (via the netlink API) for as long as they want *thebindingtoremainalive.Eachpagepoolusingthisbindingholds *areftokeepthebindingalive.Thepage_pooldoesnotreleasethe *refuntilallthenet_iovsallocatedfromthisbindingarereleased *backtothepage_pool. * *Thebindingundositselfandunmapstheunderlyingdmabufonceall *thoserefsaredroppedandthebindingisnolongerdesiredorin *use. * *net_devmem_get_net_iov()ondmabufnet_iovswillincrementthis *reference,makingsurethatthebindingremainsaliveuntilallthe *net_iovsarenolongerused.net_iovsallocatedfromthisbinding *thatarestuckintheTXpathforanyreason(suchasawaiting *retransmits)holdareferencetothebindinguntiltheskbholding *themisfreed.
*/
refcount_t ref;
/* The list of bindings currently active. Used for netlink to notify us *oftheuserdroppingthebind.
*/ struct list_head list;
/* rxq's this binding is active on. */ struct xarray bound_rxqs;
/* ID of this binding. Globally unique to all bindings currently *active.
*/
u32 id;
/* DMA direction, FROM_DEVICE for Rx binding, TO_DEVICE for Tx. */ enum dma_data_direction direction;
/* Array of net_iov pointers for this binding, sorted by virtual *address.Thisarrayisconvenienttomapthevirtualaddressesto *net_iovsintheTXpath.
*/ struct net_iov **tx_vec;
struct work_struct unbind_w;
};
#ifdefined(CONFIG_NET_DEVMEM) /* Owner of the dma-buf chunks inserted into the gen pool. Each scatterlist *entryfromthedmabufisinsertedintothegenpoolasachunk,andneeds *thisownerstructtokeeptrackofsomemetadatanecessarytocreate *allocationsfromthischunk.
*/ struct dmabuf_genpool_chunk_owner { struct net_iov_area area; struct net_devmem_dmabuf_binding *binding;
/* dma_addr of the start of the chunk. */
dma_addr_t base_dma_addr;
};
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.