static void *j_seq_next(struct seq_file *f, void *v, loff_t *pos) { if (v ==SEQ_START_TOKEN) return seq_list_start(&j_list, 0); return seq_list_next(v, &j_list, pos); }
/* * Sequence file's next iterator */ static void *ki_seq_next(struct seq_file *s, void *v, loff_t *pos) { if (v == SEQ_START_TOKEN) return seq_list_start(&ki_injection_list, *pos - 1); return seq_list_next(v, &ki_injection_list, pos); }
static void *j_seq_start(struct seq_file *f, loff_t *pos) { rcu_read_lock(); if (*pos == 0) return SEQ_START_TOKEN; else return seq_list_start(&j_list, *pos); };
static void *c_start(struct seq_file *m, loff_t *pos) { down_read(&crypto_alg_sem); return seq_list_start(&crypto_alg_list, *pos); }
/* Probes listing interfaces */ static void *probes_seq_start(struct seq_file *m, loff_t *pos) { mutex_lock(&probe_lock); return seq_list_start(&probe_list, *pos); }
/* iterator */ static void *t_start(struct seq_file *m, loff_t *pos) { mutex_lock(&tty_mutex); return seq_list_start(&tty_drivers, *pos); }
/* * Sequence file's start iterator */ static void *ki_seq_start(struct seq_file *s, loff_t *pos) { if (*pos == 0) return SEQ_START_TOKEN; return seq_list_start(&ki_injection_list, *pos - 1); }
static void *list_seq_start(struct seq_file *m, loff_t *pos) { mutex_lock(&lock); return seq_list_start(&head, *pos); }
static void *ilc_seq_start(struct seq_file *s, loff_t *pos) { seq_printf(s, "input irq status enabled used priority mode wakeup\n"); return seq_list_start(&ilcs_list, *pos); }