Lines Matching defs:bh
100 /* increments and returns the incremented value of the ref_counter for bh */
101 static long increment_buff_holder_ref (struct buff_holder *bh)
103 ++bh->r_counter;
104 return (bh->r_counter);
107 /* Decrements value of the ref_counter for bh
109 long decrement_buff_holder_ref (struct buff_holder *bh)
111 if (bh == NULL) {
115 --bh->r_counter;
116 if (bh->r_counter > 0) {
117 return (bh->r_counter);
120 if (bh->len > 0 && bh->data != NULL) {
121 free (bh->data);
123 free (bh);