Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 57) sorted by relevance

123

/xnu-11215/tests/iokit/
H A Dservice_helpers.c18 io_service_t service = IO_OBJECT_NULL; in IOTestServiceFindService() local
29 service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching(name)); in IOTestServiceFindService()
30 if (service == IO_OBJECT_NULL) { in IOTestServiceFindService()
34 } while (service == IO_OBJECT_NULL && retries <= MAX_RETRIES); in IOTestServiceFindService()
36 if (service == IO_OBJECT_NULL) { in IOTestServiceFindService()
44 if (serviceOut && service != IO_OBJECT_NULL) { in IOTestServiceFindService()
45 *serviceOut = service; in IOTestServiceFindService()
46 } else if (service != IO_OBJECT_NULL) { in IOTestServiceFindService()
47 IOObjectRelease(service); in IOTestServiceFindService()
H A DIOUserClient2022_entitlements.c24 io_service_t service; variable
28 T_QUIET; T_ASSERT_POSIX_SUCCESS(IOTestServiceFindService(serviceName, &service), "Find service");
29 T_QUIET; T_ASSERT_NE(service, MACH_PORT_NULL, "got service");
31 T_QUIET; T_ASSERT_MACH_SUCCESS(IOServiceOpen(service, mach_task_self(), 0, &conn), "open service");
37 …T_QUIET; T_ASSERT_NE(IOServiceOpen(service, mach_task_self(), 0, &conn), kIOReturnSuccess, "open s…
40 IOObjectRelease(service);
H A Dioserviceusernotification_race.c150 io_service_t service;
157 …service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("TestIOServiceUserNoti…
158 T_ASSERT_NE(service, IO_OBJECT_NULL, "service is nonnull");
162 …IOServiceAddInterestNotification(notifyPort, service, kIOBusyInterest, notificationReceived, NULL,…
169 …IOServiceAddInterestNotification(notifyPort2, service, kIOBusyInterest, notificationReceived2, c, …
175 IOObjectRelease(service);
195 io_service_t service = IO_OBJECT_NULL; variable
214 …T_QUIET; T_ASSERT_POSIX_SUCCESS(IOTestServiceFindService("TestIOServiceUserNotification", &service…
216 T_QUIET; T_ASSERT_NE(service, MACH_PORT_NULL, "got service");
221 T_ASSERT_MACH_SUCCESS(IOServiceOpen(service, mach_task_self(), 1, &connect), "open service");
[all …]
H A Dmap_memory_port_leak_45265408.c37 io_service_t service = IO_OBJECT_NULL; variable
45 …_ASSERT_POSIX_SUCCESS(IOTestServiceFindService("TestIOConnectMapMemoryPortLeak45265408", &service),
47 T_QUIET; T_ASSERT_NE(service, MACH_PORT_NULL, "got service");
50 …T_QUIET; T_ASSERT_MACH_SUCCESS(IOServiceOpen(service, mach_task_self(), 1, &connect), "open servic…
83 IOObjectRelease(service);
H A Drosetta_map_mmio.c50 io_service_t service;
54 T_QUIET; T_ASSERT_POSIX_SUCCESS(IOTestServiceFindService(serviceName, &service), "Find service");
55 T_QUIET; T_ASSERT_NE(service, MACH_PORT_NULL, "got service");
56 T_QUIET; T_ASSERT_MACH_SUCCESS(IOServiceOpen(service, mach_task_self(), 0, &conn), "open service");
114 IOObjectRelease(service);
/xnu-11215/iokit/Kernel/
H A DIOPlatformActions.cpp254 ADDR(service->getMetaClass()), in IOServicePlatformAction()
258 ret = service->callPlatformFunction(function, false, in IOServicePlatformAction()
263 ADDR(service->getMetaClass()), in IOServicePlatformAction()
294 if (service == entry->refcon0) { in IOInstallServicePlatformAction()
301 entry->name = service->getName(); in IOInstallServicePlatformAction()
308 entry->refcon0 = service; in IOInstallServicePlatformAction()
318 IOInstallServicePlatformActions(IOService * service) in IOInstallServicePlatformActions() argument
323 IOInstallServicePlatformAction(service, kQueuePanic); in IOInstallServicePlatformActions()
336 IOInstallServicePlatformAction(service, qidx); in IOInstallServiceSleepPlatformActions()
345 IORemoveServicePlatformActions(IOService * service) in IORemoveServicePlatformActions() argument
[all …]
H A DIOCatalogue.cpp216 IOService * service, in findDrivers() argument
233 meta = service->getMetaClass(); in findDrivers()
700 IOService * service; in terminateDrivers() local
727 dict = service->getPropertyTable(); in terminateDrivers()
864 IOService * service; in terminateDriversForUserspaceReboot() local
880 isDext = service->hasUserServer(); in terminateDriversForUserspaceReboot()
909 …IOLog("failed to terminate service %s-0x%llx\n", service->getName(), service->getRegistryEntryID()… in terminateDriversForUserspaceReboot()
925 IOService * service; in resetAfterUserspaceReboot() local
936 service->resetRematchProperties(); in resetAfterUserspaceReboot()
1131 OSSharedPtr<IOService> service; in startMatching()
[all …]
H A DPassthruInterruptController.cpp61 PassthruInterruptController::setCPUInterruptProperties(IOService *service) in setCPUInterruptProperties() argument
63 if ((service->getProperty(gIOInterruptControllersKey) != NULL) && in setCPUInterruptProperties()
64 (service->getProperty(gIOInterruptSpecifiersKey) != NULL)) { in setCPUInterruptProperties()
73 service->setProperty(gIOInterruptSpecifiersKey, specifier); in setCPUInterruptProperties()
78 service->setProperty(gIOInterruptControllersKey, controller); in setCPUInterruptProperties()
H A DIOService.cpp1697 if (owner->service == element->service) { in lockForArbitration()
1743 if (active->service == waiting->service) { in lockForArbitration()
2021 && (!service || (active->service == service))) { in isLockedForArbitration()
3758 return service; in copyClientWithCategory()
3766 if (service) { in getClientWithCategory()
4537 if (service) { in matchingEnd()
4543 if (service) { in matchingEnd()
5203 service && (service != parent); in hasParent()
5204 service = service->getProvider()) { in hasParent()
5214 IOService * service = (typeof(service))entry; in publishHiddenMediaApplier() local
[all …]
H A DIOUserServer.cpp412 IOService * service; in CopyDispatchQueue_Impl() local
1943 *service = next; in CopyNextNotification_Impl()
2743 IOService * service; in varsForObject() local
2910 if (!service) { in objectInstantiate()
2935 if (service->reserved->uvars && service->reserved->uvars->userServer) { in objectInstantiate()
4894 service->PMinit(); in serviceJoinPMTree()
5108 …ret = service->reserved->uvars->controllingDriver->setPowerState(service->reserved->uvars->willPow… in acknowledgeSetPowerState()
5208 service = NULL; in Create_Impl()
5239 if (service && service->init(copyProperties) && service->attach(this)) { in Create_Impl()
5780 service->PMstop(); in serviceStop()
[all …]
H A DIOPMrootDomain.cpp2226 if (!service || (service == this)) { in joinAggressiveness()
2427 service = os::move(request->data.service); in synchronizeAggressives()
2435 if (service) { in synchronizeAggressives()
3270 if (service && (service != wrangler) && (service != this)) { in updatePreventIdleSleepListInternal()
3275 if (service) { in updatePreventIdleSleepListInternal()
6743 service->getName(), service->getRegistryEntryID(),
6765 service->getName(), service->getRegistryEntryID(),
6800 service->getName(), service->getRegistryEntryID(),
10267 if (service) {
10281 me->service = service.get();
[all …]
H A DIOUserClient.cpp307 IOService *service; in releasePortForObject() local
2653 io_service_t service, in is_io_service_match_property_table() argument
2664 io_object_t service, in is_io_service_match_property_table_ool() argument
2690 io_object_t service, in is_io_service_match_property_table_bin() argument
2831 io_object_t *service ) in is_io_service_get_matching_service_ool() argument
2843 *service = NULL; in is_io_service_get_matching_service_ool()
2858 io_object_t *service) in is_io_service_get_matching_service_bin() argument
3198 io_object_t service, in is_io_service_add_interest_notification() argument
3220 io_object_t service, in is_io_service_add_interest_notification_64() argument
4152 if (service && props && service->hasUserServer()) { in is_io_registry_entry_set_properties()
[all …]
H A DIOKitKernelInternal.h240 IOReturn IOInstallServicePlatformActions(IOService * service);
241 IOReturn IOInstallServiceSleepPlatformActions(IOService * service);
242 IOReturn IORemoveServicePlatformActions(IOService * service);
H A DIOCPU.cpp647 IOCPUInterruptController::setCPUInterruptProperties(IOService *service) in setCPUInterruptProperties() argument
654 if ((service->propertyExists(gIOInterruptControllersKey)) && in setCPUInterruptProperties()
655 (service->propertyExists(gIOInterruptSpecifiersKey))) { in setCPUInterruptProperties()
674 service->setProperty(gIOInterruptControllersKey, controller.get()); in setCPUInterruptProperties()
675 service->setProperty(gIOInterruptSpecifiersKey, specifier.get()); in setCPUInterruptProperties()
H A DIOServicePMPrivate.h85 IOService * service,
94 IOService * service,
103 IOService * service,
112 IOService * service,
118 IOService * service,
/xnu-11215/tests/
H A Dioconnectasyncmethod_57641955.c13 io_service_t service; variable
17 …service = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching(kAppleKeyStoreServic…
18 if (service == IO_OBJECT_NULL) {
21 T_ASSERT_NE(service, MACH_PORT_NULL, "got " kAppleKeyStoreServiceName " service");
22 …T_ASSERT_MACH_SUCCESS(IOServiceOpen(service, mach_task_self(), 0, &conn), "opened connection to se…
/xnu-11215/iokit/IOKit/
H A DIOUserServer.h205 IOReturn serviceAttach(IOService * service, IOService * provider);
206 IOReturn serviceStop(IOService * service, IOService * provider);
207 void serviceFree(IOService * service);
208 IOReturn serviceStarted(IOService * service, IOService * provider, bool result);
214 IOReturn serviceJoinPMTree(IOService * service);
215 …IOReturn serviceSetPowerState(IOService * controllingDriver, IOService * service, IO…
216 …IOReturn serviceNewUserClient(IOService * service, task_t owningTask, void * securit…
218 …IOReturn serviceNewUserClient(IOService * service, task_t owningTask, void * securit…
239 …IOReturn setPowerState(unsigned long state, IOService * service) AP…
240 …StateWillChangeTo(IOPMPowerFlags flags, unsigned long state, IOService * service) APPLE_KEXT_OVERR…
[all …]
/xnu-11215/libkern/coreanalytics/
H A Dcoreanalytics_shim.cpp51 OSSharedPtr<IOService> service = nullptr; in core_analytics_family_match() local
53 service = IOService::waitForMatchingService(dict.get()); in core_analytics_family_match()
57 if (service) { in core_analytics_family_match()
58 return service.detach(); in core_analytics_family_match()
66 core_analytics_family_release(core_analytics_family_service_t *service) in core_analytics_family_release() argument
68 service->release(); in core_analytics_family_release()
/xnu-11215/iokit/IOKit/pwr_mgt/
H A DRootDomain.h449 IOService * service,
454 IOService * service,
461 IOService * service,
468 IOService * service,
475 IOService * service,
482 IOService * service,
486 IOService * service,
493 IOService * service );
496 IOService * service,
503 IOService * service,
[all …]
/xnu-11215/iokit/Exclaves/
H A DExclaves.cpp72 IOService *service; member
216 ref->service = this; in exclaveStart()
359 ref->service->retain(); in IOExclaveInterruptUpcallHandler()
382 ref->service->release(); in IOExclaveInterruptUpcallHandler()
386 ref->service->release(); in IOExclaveInterruptUpcallHandler()
398 ref->service->retain(); in IOExclaveTimerUpcallHandler()
438 ref->service->release(); in IOExclaveTimerUpcallHandler()
442 ref->service->release(); in IOExclaveTimerUpcallHandler()
516 ref->service->retain(); in IOExclaveTestSignalInterrupt()
524 ref->service->release(); in IOExclaveTestSignalInterrupt()
[all …]
/xnu-11215/iokit/Tests/
H A DTests.cpp1817 service, array.get(), in IOServiceStateNotificationTests()
2022 IOService * service; in sysctl_iokittest() local
2024 service = NULL; in sysctl_iokittest()
2030 service->terminate(); in sysctl_iokittest()
2033 service->registerService(); in sysctl_iokittest()
2036 if (service) { in sysctl_iokittest()
2133 fService = service; in initWithService()
2198 if (!service) { in sysctl_iokit_test_service_setup()
2204 if (!service->init()) { in sysctl_iokit_test_service_setup()
2210 if (!service->attach(provider)) { in sysctl_iokit_test_service_setup()
[all …]
/xnu-11215/osfmk/device/
H A Ddevice.defs234 service : io_object_t;
247 out service : io_object_t
351 service : io_object_t;
356 service : io_object_t;
417 service : io_object_t;
428 service : io_object_t;
483 service : io_object_t;
536 service : io_object_t;
717 out service : io_object_t
724 out service : io_object_t
[all …]
/xnu-11215/iokit/bsddev/
H A DIOKitBSDInit.cpp678 IOService * service; in IOFindBSDRoot() local
707 OSSafeReleaseNULL(service); in IOFindBSDRoot()
936 } while (!service); in IOFindBSDRoot()
940 if (service && mediaProperty) { in IOFindBSDRoot()
941 service = (IOService *)service->getProperty(mediaProperty); in IOFindBSDRoot()
951 if (service in IOFindBSDRoot()
952 && service->metaCast( "IONetworkInterface" ) in IOFindBSDRoot()
953 && !IORegisterNetworkInterface( service )) { in IOFindBSDRoot()
954 service = NULL; in IOFindBSDRoot()
957 if (service) { in IOFindBSDRoot()
[all …]
/xnu-11215/security/
H A Dmac_iokit.c68 mac_iokit_check_open_service(kauth_cred_t cred, io_object_t service, unsigned int user_client_type) in mac_iokit_check_open_service() argument
72 MAC_CHECK(iokit_check_open_service, cred, service, user_client_type); in mac_iokit_check_open_service()
/xnu-11215/iokit/DriverKit/
H A DIOService.iig76 * IOService represents an device or OS service in IOKit and DriverKit.
200 * @brief Obtain the an IOKit registry properties from the service or one of its parents.
305 * The termination is asynchronous and will later call Stop() on the service.
318 * service towards the root.
351 * @discussion Adjust the busy state of this service by applying a delta to the current busy state.
360 * @discussion Get the busy state of this service.
446 * @abstract set IORLegend and IORLegendPublic ioreg properties on this service.
477 * @brief Optionally supported external method to set properties in this service.
513 * @abstract Obtain the system state notification service.
514 * @param service Return IOService object with +1 retain count, to be released
[all …]

123