Lines Matching defs:obj
102 struct ntsync_obj *obj = file->private_data;
104 fput(obj->dev->file);
105 kfree(obj);
113 struct ntsync_obj *obj = file->private_data;
118 return ntsync_sem_post(obj, argp);
135 struct ntsync_obj *obj;
137 obj = kzalloc(sizeof(*obj), GFP_KERNEL);
138 if (!obj)
140 obj->type = type;
141 obj->dev = dev;
143 spin_lock_init(&obj->lock);
145 return obj;
148 static int ntsync_obj_get_fd(struct ntsync_obj *obj)
156 file = anon_inode_getfile("ntsync", &ntsync_obj_fops, obj, O_RDWR);
161 obj->file = file;