Lines Matching refs:fa
876 struct fasync_struct *fa, **fp;
881 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) {
882 if (fa->fa_file != filp)
885 write_lock_irq(&fa->fa_lock);
886 fa->fa_file = NULL;
887 write_unlock_irq(&fa->fa_lock);
889 *fp = fa->fa_next;
890 kfree_rcu(fa, fa_rcu);
924 struct fasync_struct *fa, **fp;
928 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) {
929 if (fa->fa_file != filp)
932 write_lock_irq(&fa->fa_lock);
933 fa->fa_fd = fd;
934 write_unlock_irq(&fa->fa_lock);
949 return fa;
997 static void kill_fasync_rcu(struct fasync_struct *fa, int sig, int band)
999 while (fa) {
1003 if (fa->magic != FASYNC_MAGIC) {
1008 read_lock_irqsave(&fa->fa_lock, flags);
1009 if (fa->fa_file) {
1010 fown = &fa->fa_file->f_owner;
1015 send_sigio(fown, fa->fa_fd, band);
1017 read_unlock_irqrestore(&fa->fa_lock, flags);
1018 fa = rcu_dereference(fa->fa_next);