Lines Matching defs:list
37 * notice, this list of conditions and the following disclaimer.
39 * notice, this list of conditions and the following disclaimer in the
558 /* no "object" for timers, so fake a list */
772 * We walk each list looking for knotes referencing this
776 * safe in the assumption that the list will eventually
804 /* start over at beginning of list */
824 /* start over at beginning of list */
1167 struct klist *list;
1169 list = &fdp->fd_knhash[
1171 SLIST_FOREACH(kn, list, kn_link)
1743 klist_init(struct klist *list)
1745 SLIST_INIT(list);
1750 * Query/Post each knote in the object's list
1752 * The object lock protects the list. It is assumed
1762 knote(struct klist *list, long hint)
1766 SLIST_FOREACH(kn, list, kn_selnext) {
1786 * attach a knote to the specified list. Return true if this is the first entry.
1787 * The list is protected by whatever lock the object it is associated with uses.
1790 knote_attach(struct klist *list, struct knote *kn)
1792 int ret = SLIST_EMPTY(list);
1793 SLIST_INSERT_HEAD(list, kn, kn_selnext);
1798 * detach a knote from the specified list. Return true if that was the last entry.
1799 * The list is protected by whatever lock the object it is associated with uses.
1802 knote_detach(struct klist *list, struct knote *kn)
1804 SLIST_REMOVE(list, kn, knote, kn_selnext);
1805 return SLIST_EMPTY(list);
1821 struct klist *list;
1824 list = &fdp->fd_knlist[fd];
1825 while ((kn = SLIST_FIRST(list)) != NULL) {
1839 * it is safe to move on in the list.
1849 list = &fdp->fd_knlist[fd];
1857 struct klist *list = NULL;
1863 list = &fdp->fd_knhash[KN_HASH(kn->kn_id, fdp->fd_knhashmask)];
1872 MALLOC(list, struct klist *,
1874 if (list == NULL)
1877 bcopy((caddr_t)fdp->fd_knlist, (caddr_t)list,
1879 bzero((caddr_t)list +
1883 fdp->fd_knlist = list;
1886 list = &fdp->fd_knlist[kn->kn_id];
1888 SLIST_INSERT_HEAD(list, kn, kn_link);
1904 struct klist *list;
1908 list = &fdp->fd_knlist[kn->kn_id];
1910 list = &fdp->fd_knhash[KN_HASH(kn->kn_id, fdp->fd_knhashmask)];
1912 SLIST_REMOVE(list, kn, knote, kn_link);