Lines Matching refs:registration
137 struct xpc_registration *registration;
147 registration = &xpc_registrations[ch_number];
149 if (mutex_lock_interruptible(®istration->mutex) != 0)
153 if (registration->func != NULL) {
154 mutex_unlock(®istration->mutex);
159 registration->entry_size = XPC_MSG_SIZE(payload_size);
160 registration->nentries = nentries;
161 registration->assigned_limit = assigned_limit;
162 registration->idle_limit = idle_limit;
163 registration->key = key;
164 registration->func = func;
166 mutex_unlock(®istration->mutex);
176 * Remove the registration for automatic connection of the specified channel
191 struct xpc_registration *registration;
195 registration = &xpc_registrations[ch_number];
202 mutex_lock(®istration->mutex);
205 if (registration->func == NULL) {
206 mutex_unlock(®istration->mutex);
210 /* remove the connection registration for the specified channel */
211 registration->func = NULL;
212 registration->key = NULL;
213 registration->nentries = 0;
214 registration->entry_size = 0;
215 registration->assigned_limit = 0;
216 registration->idle_limit = 0;
221 mutex_unlock(®istration->mutex);
233 /* initialize the connection registration mutex */