最終更新:2015-10-26 (月) 17:59:17 (1867d)  

initcall
Top / initcall

定義

  • /*
     * Early initcalls run before initializing SMP.
     *
     * Only for built-in code, not modules.
     */
    #define early_initcall(fn)              __define_initcall("early",fn,early)
    #define pure_initcall(fn)               __define_initcall("",fn,0)
    #define core_initcall(fn)               __define_initcall("1",fn,1)
    #define core_initcall_sync(fn)          __define_initcall("1s",fn,1s)
    #define postcore_initcall(fn)           __define_initcall("2",fn,2)
    #define postcore_initcall_sync(fn)      __define_initcall("2s",fn,2s)
    #define arch_initcall(fn)               __define_initcall("3",fn,3)
    #define arch_initcall_sync(fn)          __define_initcall("3s",fn,3s)
    #define subsys_initcall(fn)             __define_initcall("4",fn,4)
    #define subsys_initcall_sync(fn)        __define_initcall("4s",fn,4s)
    #define fs_initcall(fn)                 __define_initcall("5",fn,5)
    #define fs_initcall_sync(fn)            __define_initcall("5s",fn,5s)
    #define rootfs_initcall(fn)             __define_initcall("rootfs",fn,rootfs)
    #define device_initcall(fn)             __define_initcall("6",fn,6)
    #define device_initcall_sync(fn)        __define_initcall("6s",fn,6s)
    #define late_initcall(fn)               __define_initcall("7",fn,7)
    #define late_initcall_sync(fn)          __define_initcall("7s",fn,7s)
  • __define_initcall

最初の

レベル別

  • do_basic_setupで呼ばれる
    initcall_levels[] __initdata = {
            __initcall0_start,
            __initcall1_start,
            __initcall2_start,
            __initcall3_start,
            __initcall4_start,
            __initcall5_start,
            __initcall6_start,
            __initcall7_start,
            __initcall_end,

early_initcall (early)

  • xen_init_spinlocks_jump?
  • set_real_mode_permissions?
  • trace_init_perf_perm_irq_work_exit?
  • trace_init_flags_sys_exit?
  • trace_init_flags_sys_enter?
  • init_hw_perf_events?
  • register_trigger_all_cpu_backtrace?
  • numachip_system_init?
  • kvm_spinlock_init_jump?
  • early_efi_map_fb?
  • spawn_ksoftirqd?
  • init_workqueues?
  • migration_init?
  • check_cpu_stall_init?
  • rcu_register_oom_notifier?
  • rcu_spawn_gp_kthread?
  • cpu_stop_init?
  • relay_init?
  • init_events
  • init_trace_printk?
  • event_trace_enable_again?
  • jump_label_init_module?
  • dynamic_debug_init?
  • balloon_clear?
  • rand_initialize?

pure_initcall? (0)

  • ipc_ns_init?
  • init_mmap_min_addr?
  • evm_display_config?
  • init_cpufreq_transition_notifier_list?
  • net_ns_init?

core_initcall? (1)

  • xen_pvh_gnttab_setup?
  • e820_mark_nvs_memory?
  • cpufreq_tsc?
  • reboot_init?
  • init_lapic_sysfs?
  • cpu_hotplug_pm_sync_init?
  • alloc_frozen_cpus?
  • wq_sysfs_init?
  • ksysfs_init
  • pm_init?
  • pm_disk_init?
  • swsusp_header_init?
  • init_jiffies_clocksource?
  • cgroup_wq_init?
  • ftrace_mod_cmd_init?
  • init_function_trace?
  • init_wakeup_tracer?
  • init_graph_trace?
  • perf_workqueue_init?
  • init_zero_pfn?
  • memory_failure_init?
  • cma_init_reserved_areas?
  • fsnotify_init?
  • filelock_init?
  • init_script_binfmt?
  • init_elf_binfmt?
  • init_compat_elf_binfmt?
  • debugfs_init?
  • securityfs_init?
  • prandom_init?
  • pinctrl_init?
  • sfi_sysfs_init?
  • virtio_init?
  • regulator_init?
  • early_resume_init?
  • cpufreq_core_init?
  • cpuidle_init?
  • bsp_pm_check_init?
  • sock_init?
  • net_inuse_init?
  • netpoll_init?
  • netlink_proto_init?

core_initcall_sync? (1s)

postcore_initcall (2)

  • bdi_class_init?
  • mm_sysfs_init?
  • kobject_uevent_init?
  • gpiolib_sysfs_init?
  • pcibus_class_init?
  • pci_driver_init?
  • rio_bus_init?
  • backlight_class_init?
  • xenbus_init?
  • tty_class_init?
  • vtconsole_class_init?
  • iommu_dev_init?
  • mipi_dsi_bus_init?
  • wakeup_sources_debugfs_init?
  • register_node_type?
  • regmap_initcall?
  • sram_init?
  • syscon_init?
  • spi_init?
  • i2c_init?
  • init_ladder?
  • init_menu?
  • amd_postcore_init?

postcore_initcall_sync? (2s)

arch_initcall (3)

  • boot_params_ksysfs_init?
  • arch_kdebugfs_init?
  • mtrr_if_init?
  • ffh_cstate_init?
  • activate_jump_labels?
  • kcmp_cookies_init?
  • acpi_pci_init?
  • dma_bus_init?
  • dma_channel_table_init?
  • setup_vcpu_hotplug_event?
  • register_xen_pci_notifier?
  • xen_pcpu_init?
  • iommu_init?
  • dmi_id_init?
  • pci_arch_init?

arch_initcall_sync? (3s)

subsys_initcall (4)

  • mtrr_init_finialize?
  • init_vdso?
  • sysenter_setup?
  • uid_cache_init?
  • param_sysfs_init
  • proc_schedstat_init?
  • pm_sysrq_init?
  • create_proc_profile?
  • crash_save_vmcoreinfo_init?
  • crash_notes_memory_init?
  • user_namespaces_init?
  • hung_task_init?
  • default_bdi_init?
  • percpu_enable_async?
  • init_reserve_notifier?
  • init_admin_reserve?
  • init_user_reserve?
  • mmu_notifier_init?
  • ksm_init?
  • hugepage_init?
  • mem_cgroup_init?
  • crypto_wq_init?
  • cryptomgr_init?
  • init_bio?
  • blk_settings_init?
  • blk_ioc_init?
  • blk_softirq_init?
  • blk_iopoll_setup?
  • blk_mq_init?
  • genhd_device_init?
  • blk_dev_integrity_init?
  • byt_gpio_init?
  • gpiolib_debugfs_init?
  • lp_gpio_init?
  • rc5t583_gpio_init?
  • sx150x_init?
  • tc3589x_gpio_init?
  • palmas_gpio_init?
  • tps6586x_gpio_init?
  • tps65910_gpio_init?
  • pwm_debugfs_init?
  • pwm_sysfs_init?
  • pci_slot_init?
  • fbmem_init?
  • acpi_init?
  • pnp_init?
  • balloon_init?
  • xen_setup_shutdown_event?
  • xenbus_probe_backend_init?
  • xenbus_probe_frontend_init?
  • xen_acpi_pad_init?
  • balloon_init?
  • misc_init?
  • vga_arb_device_init?
  • cn_init?
  • pm860x_i2c_init?
  • tc3589x_init?
  • wm8400_module_init?
  • wm831x_i2c_init?
  • wm831x_spi_init?
  • wm8350_i2c_init?
  • tps65910_i2c_init?
  • tps65912_i2c_init?
  • tps65912_spi_init?
  • tps80031_init?
  • ezx_pcap_init?
  • da903x_init?
  • da9052_spi_init?
  • da9052_i2c_init?
  • lp8788_init?
  • da9055_i2c_init?
  • max14577_i2c_init?
  • max77686_i2c_init?
  • max77693_i2c_init?
  • max8925_i2c_init?
  • max8997_i2c_init?
  • max8998_i2c_init?
  • ab3100_i2c_init?
  • tps6586x_init?
  • tps65090_init?
  • aat2870_init?
  • palmas_i2c_init?
  • rc5t583_i2c_init?
  • sec_pmic_init?
  • as3711_i2c_init?
  • dma_buf_init?
  • init_scsi?
  • ata_init?
  • phy_init?
  • usb_init
  • serio_init?
  • input_init
  • rtc_init?
  • power_supply_class_init?
  • hwmon_init?
  • watchdog_init?
  • md_init?
  • mmc_init?
  • leds_init?
  • efisubsys_init?
  • devfreq_init?
  • devfreq_simple_ondemand_init?
  • devfreq_performance_init?
  • devfreq_powersave_init?
  • devfreq_userspace_init?
  • vme_init?
  • ras_init?
  • pci_subsys_init?
  • proto_init?
  • net_dev_init?
  • neigh_init?
  • fib_rules_init?
  • init_cgroup_netprio?
  • pktsched_init?
  • tc_filter_init?
  • tc_action_init?
  • genl_init?
  • cipso_v4_init?
  • wireless_nlevent_init?
  • netlbl_init?
  • rfkill_init?

subsys_initcall_sync? (4s)

fs_initcall? (5)

  • nmi_warning_debugfs?
  • hpet_late_init?
  • init_amd_nbs?
  • kvm_spinlock_debugfs?
  • clocksource_done_booting?
  • ftrace_init_debugfs?
  • tracer_init_debugfs?
  • init_trace_printk_function_export?
  • init_graph_debugfs?
  • event_trace_init?
  • init_kprobe_trace?
  • init_uprobe_trace?
  • init_pipe_fs?
  • eventpoll_init?
  • anon_inode_init?
  • proc_cmdline_init?
  • proc_consoles_init?
  • proc_cpuinfo_init?
  • proc_devices_init?
  • proc_interrupts_init?
  • proc_loadavg_init?
  • proc_meminfo_init?
  • proc_stat_init?
  • proc_uptime_init?
  • proc_version_init?
  • proc_softirqs_init?
  • proc_kcore_init?
  • vmcore_init?
  • proc_kmsg_init?
  • proc_page_init?
  • init_ramfs_fs?
  • tomoyo_initerface_init?
  • aa_create_aafs?
  • blk_scsi_ioctl_init?
  • dynamic_debug_init_debugfs?
  • fb_console_init?
  • simplefb_init?
  • acpi_event_init?
  • pnp_system_init?
  • pnpacpi_init?
  • chr_dev_init?
  • firmware_class_init?
  • thermal_init?
  • cpufreq_gov_performance_init?
  • init_acpi_pm_clocksource?
  • pcibios_assign_resources?
  • sysctl_core_init?
  • inet_init?
  • ipv4_offload_init?
  • af_unix_init?
  • ipv6_offload_init?

fs_initcall_sync? (5s)

rootfs_initcall (rootfs)

device_initcall (6)

  • register_kernel_offset_dumper?
  • i8259A_init_ops?
  • sbf_init?
  • init_tsc_clocksource?
  • add_rtc_cmos?
  • i8237A_init_ops?
  • cache_sysfs_init?
  • amd_uncore_init?
  • amd_iommu_pc_init?
  • rapl_pmu_init?
  • intel_uncore_init?
  • thermal_throttle_init_device?
  • microcode_init?
  • amd_ibs_init?
  • ioapic_init_ops?
  • add_pcspkr?
  • start_periodic_check_for_corruption?
  • sysfb_init?
  • pmc_atom_init?
  • audit_classes_init?
  • crc32c_intel_mod_init?
  • ia32_binfmt_init?
  • proc_execdomains_init?
  • ioresources_init?
  • init_sched_debug_procfs?
  • snapshot_device_init?
  • irq_gc_init_ops?
  • irq_pm_init_ops?
  • init_posix_timers?
  • init_posix_cpu_timers?
  • timekeeping_init_ops?
  • init_clocksource_sysfs?
  • init_timer_list_procfs?
  • alarmtimer_init?
  • clockevents_init_sysfs?
  • init_tstats_procfs?
  • futex_init?
  • proc_dma_init?
  • system_trusted_keyring_init?
  • proc_modules_init?
  • kallsyms_init?
  • pid_namespaces_init?
  • audit_init?
  • audit_watch_init?
  • audit_tree_init?
  • init_kprobes?
  • utsname_sysctl_init?
  • init_tracepoints?
  • stack_trace_init?
  • init_mmio_trace?
  • init_blk_tracer?
  • perf_event_sysfs_init?
  • init_uprobes?
  • init_per_zone_wmark_min?
  • kswapd_init?
  • extfrag_debug_init?
  • setup_vmstat?
  • mm_compute_batch_init?
  • slab_proc_init?
  • workingset_init?
  • proc_vmalloc_init?
  • procswaps_init?
  • init_frontswap?
  • hugetlb_init?
  • slab_sysfs_init?
  • init_cleancache?
  • init_zpool?
  • init_zbud?
  • zs_init?
  • fcntl_init?
  • proc_filesystems_init?
  • dio_init?
  • fsnotify_mark_init?
  • dnotify_init?
  • inotify_user_setup?
  • fanotify_user_setup?
  • aio_setup?
  • proc_locks_init?
  • init_sys32_ioctl?
  • init_mbcache?
  • dquot_init?
  • quota_init?
  • proc_version_signature_init?
  • init_devpts_fs?
  • ext4_init_fs?
  • journal_init?
  • init_hugetlbfs_fs?
  • init_fat_fs?
  • init_vfat_fs?
  • ecryptfs_init?
  • init_nls_cp437?
  • fuse_init?
  • init_pstore_fs?
  • efivarfs_init?
  • ipc_init?
  • ipc_sysctl_init?
  • init_mqueue_fs?
  • key_proc_init?
  • big_key_init?
  • selinux_nf_ip_init?
  • init_sel_fs?
  • selnl_init?
  • sel_netif_init?
  • sel_netnode_init?
  • sel_netport_init?
  • aurule_init?
  • init_smk_fs?
  • crypto_algapi_init?
  • chainiv_module_init?
  • eseqiv_module_init?
  • hmac_module_init?
  • md5_mod_init?
  • sha1_generic_mod_init?
  • sha256_generic_mod_init?
  • sha512_generic_mod_init?
  • crypto_ecb_module_init?
  • crypto_cbc_module_init?
  • aes_init?
  • crc32c_mod_init?
  • crct10dif_mod_init?
  • lzo_mod_init?
  • krng_mod_init?
  • asymmetric_key_init?
  • x509_key_init?
  • proc_genhd_init?
  • bsg_init?
  • throtl_init?
  • noop_init?
  • deadline_init?
  • cfq_init?
  • btree_module_init?
  • crc_t10dif_mod_init?
  • percpu_counter_startup?
  • digsig_init?
  • phy_core_init?
  • intel_gpio_init?
  • pci_proc_init?
  • pcie_portdrv_init?
  • aer_service_init?
  • pcie_pme_service_init?
  • pci_hotplug_init?
  • pcied_init?
  • imsttfb_init?
  • asiliantfb_init?
  • vesafb_driver_init?
  • efifb_driver_init?
  • intel_idle_init?
  • acpi_ac_init?
  • acpi_button_driver_init?
  • acpi_fan_driver_init?
  • acpi_processor_driver_init?
  • acpi_thermal_init?
  • acpi_battery_init?
  • acpi_hed_driver_init?
  • bgrt_init?
  • erst_init?
  • ghes_init?
  • virtio_mmio_init?
  • virtio_pci_driver_init?
  • virtio_balloon_driver_init?
  • xenbus_probe_initcall?
  • xenbus_init?
  • xenbus_backend_init?
  • hypervisor_subsys_init?
  • hyper_sysfs_init?
  • platform_pci_module_init?
  • xen_late_init_mcelog?
  • xen_acpi_processor_init?
  • pty_init?
  • sysrq_init?
  • xen_hvc_init?
  • serial8250_init?
  • serial_pci_driver_init?
  • max310x_uart_driver_init?
  • sccnxp_uart_driver_init?
  • init_kgdboc?
  • ttyprintk_init?
  • hpet_init?
  • agp_init?
  • agp_amd64_mod_init?
  • agp_intel_init?
  • agp_via_init?
  • init_tis?
  • cn_proc_init?
  • topology_sysfs_init?
  • cacheinfo_sysfs_init?
  • devcoredump_init?
  • brd_init?
  • loop_init?
  • xlblk_init?
  • htcpld_core_init?
  • twl_driver_init?
  • twl4030_audio_driver_init?
  • twl6040_driver_init?
  • smsc_i2c_driver_init?
  • axp20x_i2c_driver_init?
  • da9063_i2c_driver_init?
  • adp5520_driver_init?
  • intel_soc_pmic_i2c_driver_init?
  • init_sd?
  • init_sr?
  • init_sg?
  • piix_init?
  • sis_pci_driver_init?
  • ata_generic_pci_driver_init?
  • net_olddevs_init?
  • fixed_mdio_bus_init?
  • tun_init?
  • virtio_net_driver_init?
  • ppp_init?
  • netif_init?
  • cdrom_init?
  • dwc2_pci_driver_init?
  • dwc2_platform_driver_init?
  • xhci_pci_init?
  • ehci_hcd_init?
  • ehci_pci_init?
  • ehci_platform_init?
  • ohci_hcd_mod_init?
  • ohci_pci_init?
  • ohci_platform_init?
  • uhci_hcd_init?
  • xhci_hcd_init?
  • kgdbdbgp_start_thread?
  • ledtrig_usb_init?
  • i8042_init?
  • mousedev_init?
  • evdev_init
  • atkbd_init?
  • uinput_init?
  • cmos_init?
  • xgene_rtc_driver_init?
  • i2c_dev_init?
  • dm_init?
  • cpufreq_stats_init?
  • cpufreq_gov_powersave_init?
  • cpufreq_gov_userspace_init?
  • cpufreq_gov_dbs_init?
  • cpufreq_gov_dbs_init?
  • intel_pstate_init?
  • ledtrig_cpu_init?
  • efivars_sysfs_init?
  • staging_init?
  • skein_generic_init?
  • pcc_init?
  • extcon_class_init?
  • powercap_init?
  • sock_diag_init?
  • blackhole_module_init?
  • gre_offload_init?
  • sysctl_ipv4_init?
  • ipv4_netfilter_init?
  • cubictcp_register?
  • tcp_memcontrol_init?
  • inet6_init?
  • packet_init?
  • dcbnl_init?
  • init_dns_resolver?

device_initcall_sync? (6s)

late_initcall (7)

  • tboot_late_init?
  • mcheck_debugfs_init?
  • severities_debugfs_init?
  • threshold_init_device?
  • hpet_insert_resource?
  • update_mp_table?
  • lapic_insert_resource?
  • print_ICs?
  • io_apic_bug_finalize?
  • pat_memtype_list_init?
  • create_tlb_single_page_flush_ceiling?
  • init_oops_id?
  • sched_init_debug?
  • pm_qos_power_init?
  • pm_debugfs_init?
  • printk_late_init?
  • tk_debug_sleep_time_init?
  • load_system_certificate_list?
  • debugfs_kprobe_init?
  • taskstats_init?
  • clear_boot_tracer?
  • kdb_ftrace_register?
  • register_htab_map?
  • register_array_map?
  • register_test_ops?
  • fault_around_debugfs?
  • max_swapfiles_check?
  • init_zswap?
  • set_recommended_min_free_kbytes?
  • check_early_ioremap_leak?
  • init_root_keyring?
  • init_trusted?
  • init_encrypted?
  • init_profile_hash?
  • init_ima?
  • init_evm?
  • prandom_reseed?
  • pci_resource_alignment_sysfs_init?
  • pci_sysfs_init?
  • boot_wait_for_devices?
  • dmar_free_unused_resources?
  • deferred_probe_initcall?
  • late_resume_init?
  • rtc_hctosys?
  • charger_manager_init?
  • acpi_cpufreq_init?
  • powernowk8_init?
  • pcc_cpufreq_init?
  • centrino_init?
  • edd_init?
  • firmware_memmap_init?
  • efi_shutdown_init?
  • clk_debug_init?
  • pci_mmcfg_late_insert_resources?
  • register_sock_filter_ops?
  • tcp_congestion_default?
  • ip_auto_config?

late_initcall_sync? (7s)

System.map

  • grep __initcall_ System.map

関連

  • asm-generic/vmlinux.lds.h?

参考