* Write to the dump device at the specified offset. */
| 1661 | * Write to the dump device at the specified offset. |
| 1662 | */ |
| 1663 | int |
| 1664 | dump_write(struct dumperinfo *di, void *virtual, vm_offset_t physical, |
| 1665 | off_t offset, size_t length) |
| 1666 | { |
| 1667 | int error; |
| 1668 | |
| 1669 | error = dump_check_bounds(di, offset, length); |
| 1670 | if (error != 0) |
| 1671 | return (error); |
| 1672 | return (di->dumper(di->priv, virtual, physical, offset, length)); |
| 1673 | } |
| 1674 | |
| 1675 | /* |
| 1676 | * Perform kernel dump finalization: flush the compression stream, if necessary, |
no test coverage detected