Changeset f0e825d in mainline for kernel/generic/src/ipc
- Timestamp:
- 2018-03-11T07:35:05Z (8 years ago)
- Children:
- 3097958
- Parents:
- 850fd32
- git-author:
- Jakub Jermar <jakub@…> (2017-12-07 12:14:09)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-11 07:35:05)
- File:
-
- 1 edited
-
kernel/generic/src/ipc/ipcrsc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipcrsc.c
r850fd32 rf0e825d 137 137 #include <mm/slab.h> 138 138 139 static bool phone_reclaim(kobject_t *kobj)140 {141 bool gc = false;142 143 mutex_lock(&kobj->phone->lock);144 if (kobj->phone->state == IPC_PHONE_HUNGUP &&145 atomic_get(&kobj->phone->active_calls) == 0)146 gc = true;147 mutex_unlock(&kobj->phone->lock);148 149 return gc;150 }151 152 139 static void phone_destroy(void *arg) 153 140 { … … 157 144 158 145 static kobject_ops_t phone_kobject_ops = { 159 .reclaim = phone_reclaim,160 146 .destroy = phone_destroy 161 147 };
Note:
See TracChangeset
for help on using the changeset viewer.
