Home | History | Annotate | Download | only in kern

Lines Matching defs:nb

126 	struct note_buf *nb;
139 notesize = ns.ns_count * sizeof nb->nb_data + ns.ns_offset;
264 for (nb = ns.ns_first; nb != NULL; nb = nb->nb_next) {
266 nb->nb_data,
267 nb->nb_next == NULL ? ns.ns_offset : sizeof nb->nb_data),
296 while ((nb = ns.ns_first) != NULL) {
297 ns.ns_first = nb->nb_next;
298 kmem_free(nb, sizeof *nb);
552 struct note_buf *nb = ns->ns_last;
561 copylen = uimin(len, sizeof(nb->nb_data) - ns->ns_offset);
562 wp = nb->nb_data + ns->ns_offset;
566 nb->nb_next = kmem_alloc(sizeof(*nb->nb_next), KM_SLEEP);
567 nb = nb->nb_next;
568 ns->ns_last = nb;
576 wp + copylen < nb->nb_data + sizeof(nb->nb_data))