Lines Matching refs:refcount
71 int32_t refcount; // number of clients referencing this
762 kfse_dest->refcount = 1;
795 OSAddAtomic(1, (SInt32 *)&kfse->refcount);
812 if (kfse->refcount < 1) {
813 panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
831 OSAddAtomic(1, (SInt32 *)&kfse->refcount);
833 if (kfse->refcount < 1) {
834 panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
858 OSAddAtomic(1, (SInt32 *)&kfse_dest->refcount);
901 kfse->refcount = 1;
911 kfse_dest->refcount = 1;
927 if (kfse->refcount < 1) {
928 panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
1097 if (kfse->refcount < 1) {
1098 panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
1130 old_refcount = OSAddAtomic(-1, (SInt32 *)&kfse->refcount);
1136 if (kfse->refcount < 0) {
1137 panic("release_event_ref: bogus kfse refcount %d\n", kfse->refcount);
1140 if (kfse->refcount > 0 || kfse->type == FSE_INVALID) {
1147 // doing anything because if the refcount is > 0 then
1162 if (kfse->dest && OSAddAtomic(-1, (SInt32 *)&kfse->dest->refcount) == 1) {
1348 if (kfse->type == FSE_INVALID || kfse->refcount < 1) {
1349 panic("remove_watcher: bogus kfse %p during cleanup (type %d refcount %d rd %d wr %d)\n", kfse, kfse->type, kfse->refcount, watcher->rd, watcher->wr);
1437 OSAddAtomic(1, (SInt32 *)&kfse->refcount);
1553 panic("fsevents: copy_out_kfse: asked to copy out an invalid event (kfse %p, refcount %d fref ptr %p)\n", kfse, kfse->refcount, kfse->str);
1780 if (kfse->type == FSE_INVALID || kfse->refcount < 1) {
1781 panic("fmod_watch: someone left me a bogus kfse %p (type %d refcount %d rd %d wr %d)\n", kfse, kfse->type, kfse->refcount, watcher->rd, watcher->wr);
1810 if (kfse->type == FSE_INVALID || kfse->refcount < 1) {
1811 panic("fmod_watch:2: my kfse became bogus! kfse %p (type %d refcount %d rd %d wr %d)\n", kfse, kfse->type, kfse->refcount, watcher->rd, watcher->wr);