tag | line | file | source code |
fa | 270 | drivers/char/psaux.c | struct fasync_struct *fa, *prev; |
fa | 272 | drivers/char/psaux.c | for (fa = queue->fasync, prev = 0; fa; prev= fa, fa = fa->fa_next) { |
fa | 273 | drivers/char/psaux.c | if (fa->fa_file == filp) |
fa | 278 | drivers/char/psaux.c | if (fa) |
fa | 280 | drivers/char/psaux.c | fa = (struct fasync_struct *)kmalloc(sizeof(struct fasync_struct), GFP_KERNEL); |
fa | 281 | drivers/char/psaux.c | if (!fa) |
fa | 283 | drivers/char/psaux.c | fa->magic = FASYNC_MAGIC; |
fa | 284 | drivers/char/psaux.c | fa->fa_file = filp; |
fa | 285 | drivers/char/psaux.c | fa->fa_next = queue->fasync; |
fa | 286 | drivers/char/psaux.c | queue->fasync = fa; |
fa | 289 | drivers/char/psaux.c | if (!fa) |
fa | 292 | drivers/char/psaux.c | prev->fa_next = fa->fa_next; |
fa | 294 | drivers/char/psaux.c | queue->fasync = fa->fa_next; |
fa | 295 | drivers/char/psaux.c | kfree_s(fa, sizeof(struct fasync_struct)); |
fa | 1223 | drivers/char/tty_io.c | struct fasync_struct *fa, *prev; |
fa | 1229 | drivers/char/tty_io.c | for (fa = tty->fasync, prev = 0; fa; prev= fa, fa = fa->fa_next) { |
fa | 1230 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
fa | 1235 | drivers/char/tty_io.c | if (fa) |
fa | 1237 | drivers/char/tty_io.c | fa = (struct fasync_struct *)kmalloc(sizeof(struct fasync_struct), GFP_KERNEL); |
fa | 1238 | drivers/char/tty_io.c | if (!fa) |
fa | 1240 | drivers/char/tty_io.c | fa->magic = FASYNC_MAGIC; |
fa | 1241 | drivers/char/tty_io.c | fa->fa_file = filp; |
fa | 1242 | drivers/char/tty_io.c | fa->fa_next = tty->fasync; |
fa | 1243 | drivers/char/tty_io.c | tty->fasync = fa; |
fa | 1253 | drivers/char/tty_io.c | if (!fa) |
fa | 1256 | drivers/char/tty_io.c | prev->fa_next = fa->fa_next; |
fa | 1258 | drivers/char/tty_io.c | tty->fasync = fa->fa_next; |
fa | 1259 | drivers/char/tty_io.c | kfree_s(fa, sizeof(struct fasync_struct)); |
fa | 174 | fs/fcntl.c | void kill_fasync(struct fasync_struct *fa, int sig) |
fa | 176 | fs/fcntl.c | while (fa) { |
fa | 177 | fs/fcntl.c | if (fa->magic != FASYNC_MAGIC) { |
fa | 182 | fs/fcntl.c | if (fa->fa_file->f_owner > 0) |
fa | 183 | fs/fcntl.c | kill_proc(fa->fa_file->f_owner, sig, 1); |
fa | 185 | fs/fcntl.c | kill_pg(-fa->fa_file->f_owner, sig, 1); |
fa | 186 | fs/fcntl.c | fa = fa->fa_next; |
fa | 17 | fs/nfs/cache.c | void nfs_bl_cache_revalidate(nfs_cache *nh, struct fattr fa) |
fa | 394 | include/linux/fs.h | extern void kill_fasync(struct fasync_struct *fa, int sig); |
fa | 409 | net/socket.c | struct fasync_struct *fa, *fna=NULL, **prev; |
fa | 427 | net/socket.c | for(fa=*prev; fa!=NULL; prev=&fa->fa_next,fa=*prev) |
fa | 428 | net/socket.c | if(fa->fa_file==filp) |
fa | 433 | net/socket.c | if(fa!=NULL) |
fa | 446 | net/socket.c | if(fa!=NULL) |
fa | 448 | net/socket.c | *prev=fa->fa_next; |
fa | 449 | net/socket.c | kfree_s(fa,sizeof(struct fasync_struct)); |