Lines Matching defs:obj
179 void (*free)(void *obj); /* routine that will free obj */
180 void *obj; /* object */
348 static struct shared *dup_shared(struct shared *obj);
349 static void rel_shared(struct shared *obj);
350 static void *get_obj(struct shared *obj);
3617 create_shared(void *obj, void * (*obj_alloc)(void *obj),
3625 if ((out->obj = obj_alloc(obj)) == NULL) {
3642 dup_shared(struct shared *obj)
3644 if (obj != NULL) {
3645 obj->count++;
3647 return (obj);
3651 rel_shared(struct shared *obj)
3653 if (obj && (--obj->count) == 0) {
3654 obj->free(obj->obj);
3655 free(obj);
3660 get_obj(struct shared *obj)
3662 return (obj->obj);