发明名称 System and method for dynamically adding an ioctl command to a file
摘要 A scheme for enabling I/O control ("ioctl") commands to be dynamically added to and removed from a file, in particular, a pseudo device driver ("PDD") in a Unix kernel, without requiring the kernel subsequently to be recompiled and rebooted. In one embodiment, this is accomplished by providing an ioctl table in the file for storing one or more ioctl commands. The ioctl table is indexed by ioctl command and each table entry comprises a function pointer that is called when the corresponding ioctl command is issued. Additionally, two functions are added to the PDD, including a register_cmd(cmd, fn( )) function, which adds an ioctl command ("cmd") and its corresponding function pointer ("fn( )")to the ioctl table, and an unregister_cmd(cmd) function, which removes an ioctl command and its corresponding function pointer from the ioctl table.
申请公布号 US2004010632(A1) 申请公布日期 2004.01.15
申请号 US20020193427 申请日期 2002.07.11
申请人 KIICK CHRIS J. 发明人 KIICK CHRIS J.
分类号 G06F3/00;G06F9/445;(IPC1-7):G06F3/00 主分类号 G06F3/00
代理机构 代理人
主权项
地址