Lines Matching refs:nb
184 * @nb: the notifier to call
187 * notification for each volume. If @nb is %NULL, then all registered notifiers
188 * are called, otherwise only the @nb notifier is called. Returns the number of
191 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb)
209 if (nb)
210 nb->notifier_call(nb, ntype, &nt);
223 * @nb: the notifier to call
226 * %UBI_VOLUME_ADDED notification for each volume. If @nb is %NULL, then all
227 * registered notifiers are called, otherwise only the @nb notifier is called.
230 int ubi_enumerate_volumes(struct notifier_block *nb)
243 count += ubi_notify_all(ubi, UBI_VOLUME_ADDED, nb);