Vim file +line
For example:
root@xxx-ubuntu:/ics-android/ics-src/system/core/init# grep init.rc *-rn init.c:706:init_parse_config_file ("/
Init.rc "); util.c:79: * ("/dev/socket") as dictated in init.rc. This socket was inherited by the root@xxx-ubuntu:/ics-android/ics-src/system/core/init# VI init.c +706 691 mount ("Sysfs
","/sys "," Sysfs ", 0, NULL); 692 693/* indicate that booting are in progress to background FW loaders, etc */694 close ("/dev/.bootin G ", O_wronly |
o_creat, 0000)); 695 696/* We must has some place other than/to create the 697 * device nodes for kmsg and null, othe
Rwise we won ' t 698 * is able to remount/read-only later on.
699 * Now this tmpfs is mounted on/dev, we can actually the "talk to the" outside world.
701 */702 Open_devnull_stdio ();
703 Klog_init ();
704 705 INFO ("reading config file\n");
706 Init_parse_config_file ("/init.rc"); 707 708/* Pull the kernel commandline and RAMDisk properties file in */709 import_kernel_cmdline (0, Import_kernel_nv);
710/* don ' t expose the raw commandline to Nonpriv processes */711 chmod ("/proc/cmdline", 0440);
712 get_hardware_name (Hardware, &revision);
713 snprintf (TMP, sizeof (TMP), "/init.%s.rc", hardware);
714 Init_parse_config_file (TMP);
715 716 Action_for_each_trigger ("Early-init", Action_add_queue_tail);
717 718 queue_builtin_action (wait_for_coldboot_done_action, "Wait_for_coldboot_done");
719 Queue_builtin_action (property_init_action, "property_init");
720 queue_builtin_action (keychord_init_action, "keychord_init");
721 Queue_builtin_action (console_init_action, "console_init"); /mnt/ics-android/ics-src/system/core/init/init.c[1,ro] [c] Unix utf-8 5:706/819