* Return a pointer to the sbuf data. */
| 832 | * Return a pointer to the sbuf data. |
| 833 | */ |
| 834 | char * |
| 835 | sbuf_data(struct sbuf *s) |
| 836 | { |
| 837 | |
| 838 | assert_sbuf_integrity(s); |
| 839 | assert_sbuf_state(s, SBUF_FINISHED); |
| 840 | KASSERT(s->s_drain_func == NULL, |
| 841 | ("%s makes no sense on sbuf %p with drain", __func__, s)); |
| 842 | |
| 843 | return (s->s_buf); |
| 844 | } |
| 845 | |
| 846 | /* |
| 847 | * Return the length of the sbuf data. |
no outgoing calls
no test coverage detected