简体   繁体   English

如何从用户空间暂停Linux中的i2c设备?

[英]How do I suspend an i2c device in Linux from userspace?

I am attempting to put a particular device into suspended mode, and have been unable to find a way to do this. 我试图将特定设备置于挂起模式,并且无法找到执行此操作的方法。 I see in the kernel that a suspend command can be defined, but what is the user space analog to it, if there is one? 我在内核中看到可以定义一个挂起命令,但是如果有一个用户空间是什么模拟它呢?

In this case, it is to allow me to mask an interrupt in a touchscreen controller before its power is removed. 在这种情况下,允许我在移除电源之前屏蔽触摸屏控制器中的中断。

edited to add additional info: Additional information: This is for an embedded device, using linux kernel 2.6 编辑以添加其他信息:附加信息:这是针对嵌入式设备,使用Linux内核2.6

典型的顺序是向设备发送命令以使其进入“挂起”模式,然后将打开的文件描述符关闭到该设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM