Lines Matching defs:new
898 void fasync_free(struct fasync_struct *new)
900 kmem_cache_free(fasync_cache, new);
904 * Insert a new entry into the fasync list. Return the pointer to the
905 * old one if we didn't use the new one.
910 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
926 rwlock_init(&new->fa_lock);
927 new->magic = FASYNC_MAGIC;
928 new->fa_file = filp;
929 new->fa_fd = fd;
930 new->fa_next = *fapp;
931 rcu_assign_pointer(*fapp, new);
946 struct fasync_struct *new;
948 new = fasync_alloc();
949 if (!new)
956 * So free the (unused) new entry and return 0 to let the
957 * caller know that we didn't add any new fasync entries.
959 if (fasync_insert_entry(fd, filp, fapp, new)) {
960 fasync_free(new);
1026 * Please add new bits here to ensure allocation uniqueness.