* Free a scatter/gather list allocated via sglist_allc(). */
| 297 | * Free a scatter/gather list allocated via sglist_allc(). |
| 298 | */ |
| 299 | void |
| 300 | sglist_free(struct sglist *sg) |
| 301 | { |
| 302 | |
| 303 | if (sg == NULL) |
| 304 | return; |
| 305 | |
| 306 | if (refcount_release(&sg->sg_refs)) |
| 307 | free(sg, M_SGLIST); |
| 308 | } |
| 309 | |
| 310 | /* |
| 311 | * Append the segments to describe a single kernel virtual address |
no test coverage detected