1. device/amlogic/f16ref/init.rc中的:
# remote
service remotecfg /system/bin/remotecfg /system/etc/remote.conf
class main
oneshot
通过remotecfg模块调用remote.conf
2. external/remoteconf下的代码生成remotecfg模块 ,该模块通过用户空间的ioctl将remote.conf中的参数传给内核空间
3 .遥控器驱动程序 kernel/drivers/amlogic/input/irremote/remote_kbd.c通过调用内核空间的ioctl ,把用户空间的参数和码值拷贝到内核空间。
static const struct file_operations remote_fops = {
.owner = THIS_MODULE,
.open =remote_config_open,
.ioctl = remote_config_ioctl,
.release = remote_config_release,
};