导出在Linux内核ARM平台驱动可用的函数
扫描二维码
随时随地手机看文章
进入arch/arm/目录,然后用grep "EXPORT_SYMBOL" * -r 命令将那些被EXPROT_SYMBOL宏导出的ARM平台驱动可用的函数打印出来,用户程序不能使用EXPORT_SYMBOL导出的函数,通过观察和了解这些导出的函数可以有助于驱动的编写。其中对于s3c2440可以的有:
common/scoop.c:32:EXPORT_SYMBOL(platform_scoop_config);
common/scoop.c:139:EXPORT_SYMBOL(reset_scoop);
common/scoop.c:140:EXPORT_SYMBOL(read_scoop_reg);
common/scoop.c:141:EXPORT_SYMBOL(write_scoop_reg);
common/icst525.c:29:EXPORT_SYMBOL(icst525_khz);
common/icst525.c:95:EXPORT_SYMBOL(icst525_khz_to_vco);
common/icst525.c:160:EXPORT_SYMBOL(icst525_ps_to_vco);
common/icst307.c:32:EXPORT_SYMBOL(icst307_khz);
common/icst307.c:97:EXPORT_SYMBOL(icst307_khz_to_vco);
common/icst307.c:161:EXPORT_SYMBOL(icst307_ps_to_vco);
common/clkdev.c:78:EXPORT_SYMBOL(clk_get_sys);
common/clkdev.c:86:EXPORT_SYMBOL(clk_get);
common/clkdev.c:92:EXPORT_SYMBOL(clk_put);
common/clkdev.c:100:EXPORT_SYMBOL(clkdev_add);
common/clkdev.c:137:EXPORT_SYMBOL(clkdev_alloc);
common/clkdev.c:155:EXPORT_SYMBOL(clk_add_alias);
common/clkdev.c:167:EXPORT_SYMBOL(clkdev_drop);
common/locomo.c:1111:EXPORT_SYMBOL(locomo_frontlight_set);
common/locomo.c:1212:EXPORT_SYMBOL(locomo_driver_register);
common/locomo.c:1213:EXPORT_SYMBOL(locomo_driver_unregister);
common/locomo.c:1214:EXPORT_SYMBOL(locomo_gpio_set_dir);
common/locomo.c:1215:EXPORT_SYMBOL(locomo_gpio_read_level);
common/locomo.c:1216:EXPORT_SYMBOL(locomo_gpio_read_output);
common/locomo.c:1217:EXPORT_SYMBOL(locomo_gpio_write);
common/locomo.c:1218:EXPORT_SYMBOL(locomo_m62332_senddata);
common/dmabounce.c:343:EXPORT_SYMBOL(dma_map_single);
common/dmabounce.c:361:EXPORT_SYMBOL(dma_map_page);
common/dmabounce.c:378:EXPORT_SYMBOL(dma_unmap_single);
common/dmabounce.c:407:EXPORT_SYMBOL(dmabounce_sync_for_cpu);
common/dmabounce.c:436:EXPORT_SYMBOL(dmabounce_sync_for_device);
common/dmabounce.c:507:EXPORT_SYMBOL(dmabounce_register_dev);
common/dmabounce.c:542:EXPORT_SYMBOL(dmabounce_unregister_dev);
common/uengine.c:88:EXPORT_SYMBOL(ixp2000_uengine_csr_read);
common/uengine.c:104:EXPORT_SYMBOL(ixp2000_uengine_csr_write);
common/uengine.c:116:EXPORT_SYMBOL(ixp2000_uengine_reset);
common/uengine.c:139:EXPORT_SYMBOL(ixp2000_uengine_set_mode);
common/uengine.c:203:EXPORT_SYMBOL(ixp2000_uengine_load_microcode);
common/uengine.c:223:EXPORT_SYMBOL(ixp2000_uengine_init_context);
common/uengine.c:236:EXPORT_SYMBOL(ixp2000_uengine_start_contexts);
common/uengine.c:250:EXPORT_SYMBOL(ixp2000_uengine_stop_contexts);
common/uengine.c:450:EXPORT_SYMBOL(ixp2000_uengine_load);
common/sharpsl_param.c:40:EXPORT_SYMBOL(sharpsl_param);
kernel/time.c:49:EXPORT_SYMBOL(rtc_lock);
kernel/time.c:76:EXPORT_SYMBOL(profile_pc);
kernel/time.c:222:EXPORT_SYMBOL(leds_event);
kernel/time.c:263:EXPORT_SYMBOL(do_gettimeofday);
kernel/time.c:294:EXPORT_SYMBOL(do_settimeofday);
kernel/time.c:311:EXPORT_SYMBOL(save_time_delta);
kernel/time.c:328:EXPORT_SYMBOL(restore_time_delta);
kernel/stacktrace.c:59:EXPORT_SYMBOL(walk_stackframe);
kernel/stacktrace.c:127:EXPORT_SYMBOL_GPL(save_stack_trace);
kernel/elf.c:38:EXPORT_SYMBOL(elf_check_arch);
kernel/elf.c:68:EXPORT_SYMBOL(elf_set_personality);
kernel/elf.c:92:EXPORT_SYMBOL(arm_elf_read_implies_exec);
kernel/io.c:48:EXPORT_SYMBOL(_memcpy_fromio);
kernel/io.c:49:EXPORT_SYMBOL(_memcpy_toio);
kernel/io.c:50:EXPORT_SYMBOL(_memset_io);
kernel/setup.c:68:EXPORT_SYMBOL(processor_id);
kernel/setup.c:70:EXPORT_SYMBOL(__machine_arch_type);
kernel/setup.c:72:EXPORT_SYMBOL(cacheid);
kernel/setup.c:77:EXPORT_SYMBOL(system_rev);
kernel/setup.c:80:EXPORT_SYMBOL(system_serial_low);
kernel/setup.c:83:EXPORT_SYMBOL(system_serial_high);
kernel/setup.c:86:EXPORT_SYMBOL(elf_hwcap);
kernel/setup.c:114:EXPORT_SYMBOL(elf_platform);
kernel/ecard.c:943:EXPORT_SYMBOL(ecard_request_resources);
kernel/ecard.c:954:EXPORT_SYMBOL(ecard_release_resources);
kernel/ecard.c:962:EXPORT_SYMBOL(ecard_setirq);
kernel/ecard.c:979:EXPORT_SYMBOL(ecardm_iomap);
kernel/ecard.c:1238:EXPORT_SYMBOL(ecard_readchunk);
kernel/ecard.c:1239:EXPORT_SYMBOL(ecard_register_driver);
kernel/ecard.c:1240:EXPORT_SYMBOL(ecard_remove_driver);
kernel/ecard.c:1241:EXPORT_SYMBOL(ecard_bus_type);
kernel/fiq.c:170:EXPORT_SYMBOL(set_fiq_handler);
kernel/fiq.c:171:EXPORT_SYMBOL(set_fiq_regs);
kernel/fiq.c:172:EXPORT_SYMBOL(get_fiq_regs);
kernel/fiq.c:173:EXPORT_SYMBOL(claim_fiq);
kernel/fiq.c:174:EXPORT_SYMBOL(release_fiq);
kernel/fiq.c:175:EXPORT_SYMBOL(enable_fiq);
kernel/fiq.c:176:EXPORT_SYMBOL(disable_fiq);
kernel/bios32.c:477:EXPORT_SYMBOL(pcibios_fixup_bus);
kernel/bios32.c:478:EXPORT_SYMBOL(pcibios_resource_to_bus);
kernel/bios32.c:479:EXPORT_SYMBOL(pcibios_bus_to_resource);
kernel/init_task.c:38:EXPORT_SYMBOL(init_task);
kernel/unwind.c:45:EXPORT_SYMBOL(__aeabi_unwind_cpp_pr0);
kernel/unwind.c:50:EXPORT_SYMBOL(__aeabi_unwind_cpp_pr1);
kernel/unwind.c:55:EXPORT_SYMBOL(__aeabi_unwind_cpp_pr2);
kernel/traps.c:203:EXPORT_SYMBOL(dump_stack);
kernel/traps.c:640:EXPORT_SYMBOL(__bad_xchg);
kernel/traps.c:677:EXPORT_SYMBOL(__bug);
kernel/traps.c:684:EXPORT_SYMBOL(__readwrite_bug);
kernel/traps.c:706:EXPORT_SYMBOL(__div0);
kernel/traps.c:715:EXPORT_SYMBOL(abort);
kernel/process.c:62:EXPORT_SYMBOL(disable_hlt);
kernel/process.c:69:EXPORT_SYMBOL(enable_hlt);
kernel/process.c:118:EXPORT_SYMBOL(pm_power_off);
kernel/process.c:121:EXPORT_SYMBOL_GPL(arm_pm_restart);
kernel/process.c:136:EXPORT_SYMBOL(pm_idle);
kernel/process.c:286:EXPORT_SYMBOL_GPL(thread_notify_head);
kernel/process.c:343:EXPORT_SYMBOL(dump_fpu);
kernel/process.c:395:EXPORT_SYMBOL(kernel_thread);
kernel/sys_arm.c:302:EXPORT_SYMBOL(kernel_execve);
kernel/dma.c:25:EXPORT_SYMBOL(dma_spin_lock);
kernel/dma.c:86:EXPORT_SYMBOL(request_dma);
kernel/dma.c:118:EXPORT_SYMBOL(free_dma);
kernel/dma.c:134:EXPORT_SYMBOL(set_dma_sg);
kernel/dma.c:152:EXPORT_SYMBOL(__set_dma_addr);
kernel/dma.c:170:EXPORT_SYMBOL(set_dma_count);
kernel/dma.c:185:EXPORT_SYMBOL(set_dma_mode);
kernel/dma.c:206:EXPORT_SYMBOL(enable_dma);
kernel/dma.c:227:EXPORT_SYMBOL(disable_dma);
kernel/dma.c:237:EXPORT_SYMBOL(dma_channel_active);
kernel/dma.c:243:EXPORT_SYMBOL(set_dma_page);
kernel/dma.c:254:EXPORT_SYMBOL(set_dma_speed);
kernel/dma.c:266:EXPORT_SYMBOL(get_dma_residue);
kernel/armksyms.c:59:#defineEXPORT_SYMBOL_ALIAS(sym,orig)
kernel/armksyms.c:69:EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
kernel/armksyms.c:70:EXPORT_SYMBOL_ALIAS(fp_printk,printk);
kernel/armksyms.c:71:EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
kernel/armksyms.c:73:EXPORT_SYMBOL(__backtrace);
kernel/armksyms.c:76:EXPORT_SYMBOL(__udelay);
kernel/armksyms.c:77:EXPORT_SYMBOL(__const_udelay);
kernel/armksyms.c:80:EXPORT_SYMBOL(csum_partial);
kernel/armksyms.c:81:EXPORT_SYMBOL(csum_partial_copy_from_user);
kernel/armksyms.c:82:EXPORT_SYMBOL(csum_partial_copy_nocheck);
kernel/armksyms.c:83:EXPORT_SYMBOL(__csum_ipv6_magic);
kernel/armksyms.c:87:EXPORT_SYMBOL(__raw_readsb);
kernel/armksyms.c:90:EXPORT_SYMBOL(__raw_readsw);
kernel/armksyms.c:93:EXPORT_SYMBOL(__raw_readsl);
kernel/armksyms.c:96:EXPORT_SYMBOL(__raw_writesb);
kernel/armksyms.c:99:EXPORT_SYMBOL(__raw_writesw);
kernel/armksyms.c:102:EXPORT_SYMBOL(__raw_writesl);
kernel/armksyms.c:106:EXPORT_SYMBOL(strchr);
kernel/armksyms.c:107:EXPORT_SYMBOL(strrchr);
kernel/armksyms.c:108:EXPORT_SYMBOL(memset);
kernel/armksyms.c:109:EXPORT_SYMBOL(memcpy);
kernel/armksyms.c:110:EXPORT_SYMBOL(memmove);
kernel/armksyms.c:111:EXPORT_SYMBOL(memchr);
kernel/armksyms.c:112:EXPORT_SYMBOL(__memzero);
kernel/armksyms.c:115:EXPORT_SYMBOL(__strnlen_user);
kernel/armksyms.c:116:EXPORT_SYMBOL(__strncpy_from_user);
kernel/armksyms.c:119:EXPORT_SYMBOL(copy_page);
kernel/armksyms.c:121:EXPORT_SYMBOL(__copy_from_user);
kernel/armksyms.c:122:EXPORT_SYMBOL(__copy_to_user);
kernel/armksyms.c:123:EXPORT_SYMBOL(__clear_user);
kernel/armksyms.c:125:EXPORT_SYMBOL(__get_user_1);
kernel/armksyms.c:126:EXPORT_SYMBOL(__get_user_2);
kernel/armksyms.c:127:EXPORT_SYMBOL(__get_user_4);
kernel/armksyms.c:129:EXPORT_SYMBOL(__put_user_1);
kernel/armksyms.c:130:EXPORT_SYMBOL(__put_user_2);
kernel/armksyms.c:131:EXPORT_SYMBOL(__put_user_4);
kernel/armksyms.c:132:EXPORT_SYMBOL(__put_user_8);
kernel/armksyms.c:136:EXPORT_SYMBOL(sha_transform);
kernel/armksyms.c:139:EXPORT_SYMBOL(__ashldi3);
kernel/armksyms.c:140:EXPORT_SYMBOL(__ashrdi3);
kernel/armksyms.c:141:EXPORT_SYMBOL(__divsi3);
kernel/armksyms.c:142:EXPORT_SYMBOL(__lshrdi3);
kernel/armksyms.c:143:EXPORT_SYMBOL(__modsi3);
kernel/armksyms.c:144:EXPORT_SYMBOL(__muldi3);
kernel/armksyms.c:145:EXPORT_SYMBOL(__ucmpdi2);
kernel/armksyms.c:146:EXPORT_SYMBOL(__udivsi3);
kernel/armksyms.c:147:EXPORT_SYMBOL(__umodsi3);
kernel/armksyms.c:148:EXPORT_SYMBOL(__do_div64);
kernel/armksyms.c:151:EXPORT_SYMBOL(__aeabi_idiv);
kernel/armksyms.c:152:EXPORT_SYMBOL(__aeabi_idivmod);
kernel/armksyms.c:153:EXPORT_SYMBOL(__aeabi_lasr);
kernel/armksyms.c:154:EXPORT_SYMBOL(__aeabi_llsl);
kernel/armksyms.c:155:EXPORT_SYMBOL(__aeabi_llsr);
kernel/armksyms.c:156:EXPORT_SYMBOL(__aeabi_lmul);
kernel/armksyms.c:157:EXPORT_SYMBOL(__aeabi_uidiv);
kernel/armksyms.c:158:EXPORT_SYMBOL(__aeabi_uidivmod);
kernel/armksyms.c:159:EXPORT_SYMBOL(__aeabi_ulcmp);
kernel/armksyms.c:163:EXPORT_SYMBOL(_set_bit_le);
kernel/armksyms.c:164:EXPORT_SYMBOL(_test_and_set_bit_le);
kernel/armksyms.c:165:EXPORT_SYMBOL(_clear_bit_le);
kernel/armksyms.c:166:EXPORT_SYMBOL(_test_and_clear_bit_le);
kernel/armksyms.c:167:EXPORT_SYMBOL(_change_bit_le);
kernel/armksyms.c:168:EXPORT_SYMBOL(_test_and_change_bit_le);
kernel/armksyms.c:169:EXPORT_SYMBOL(_find_first_zero_bit_le);
kernel/armksyms.c:170:EXPORT_SYMBOL(_find_next_zero_bit_le);
kernel/armksyms.c:171:EXPORT_SYMBOL(_find_first_bit_le);
kernel/armksyms.c:172:EXPORT_SYMBOL(_find_next_bit_le);
kernel/armksyms.c:175:EXPORT_SYMBOL(_set_bit_be);
kernel/armksyms.c:176:EXPORT_SYMBOL(_test_and_set_bit_be);
kernel/armksyms.c:177:EXPORT_SYMBOL(_clear_bit_be);
kernel/armksyms.c:178:EXPORT_SYMBOL(_test_and_clear_bit_be);
kernel/armksyms.c:179:EXPORT_SYMBOL(_change_bit_be);
kernel/armksyms.c:180:EXPORT_SYM