Lines Matching defs:registration
160 struct xpc_registration *registration;
170 registration = &xpc_registrations[ch_number];
172 if (mutex_lock_interruptible(®istration->mutex) != 0)
176 if (registration->func != NULL) {
177 mutex_unlock(®istration->mutex);
182 registration->entry_size = XPC_MSG_SIZE(payload_size);
183 registration->nentries = nentries;
184 registration->assigned_limit = assigned_limit;
185 registration->idle_limit = idle_limit;
186 registration->key = key;
187 registration->func = func;
189 mutex_unlock(®istration->mutex);
198 * Remove the registration for automatic connection of the specified channel
213 struct xpc_registration *registration;
217 registration = &xpc_registrations[ch_number];
224 mutex_lock(®istration->mutex);
227 if (registration->func == NULL) {
228 mutex_unlock(®istration->mutex);
232 /* remove the connection registration for the specified channel */
233 registration->func = NULL;
234 registration->key = NULL;
235 registration->nentries = 0;
236 registration->entry_size = 0;
237 registration->assigned_limit = 0;
238 registration->idle_limit = 0;
242 mutex_unlock(®istration->mutex);
254 /* initialize the connection registration mutex */