MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dmar_ctx_link

Function dmar_ctx_link

freebsd/x86/iommu/intel_ctx.c:454–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454static void
455dmar_ctx_link(struct dmar_ctx *ctx)
456{
457 struct dmar_domain *domain;
458
459 domain = CTX2DOM(ctx);
460 IOMMU_ASSERT_LOCKED(domain->iodom.iommu);
461 KASSERT(domain->refs >= domain->ctx_cnt,
462 ("dom %p ref underflow %d %d", domain, domain->refs,
463 domain->ctx_cnt));
464 domain->refs++;
465 domain->ctx_cnt++;
466 LIST_INSERT_HEAD(&domain->contexts, ctx, link);
467}
468
469static void
470dmar_ctx_unlink(struct dmar_ctx *ctx)

Callers 2

dmar_get_ctx_for_dev1Function · 0.85
dmar_move_ctx_to_domainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected