<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009>Hi,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>I have two
somewhat related questions regarding libhid on Linux
(Ubuntu).</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>1. What is
the difference betweeen hid_force_open() and hid_open()?</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>I read from
the documentation and code comments that "force" version attempts to unmount the
device to take control away from Linux hiddev driver. Is this step necessary? I
say this because it may be related to the my second
questions.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>2. Is is
possible to unmount only the HID enumeration of a device and leave any
additional enunmerations still mounted? In my case, I have a USB memory stick
that enumerates as a USB composite device: a mass storage device, and an HID
device. When I call hid_force_open(), the mass storage drives on this
device disappear. I assume the unmount call in hid_force_open() does
this.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>So, is there
a way for me to access the HID part of the device through libhid without
unmounting the complete device, or have I reached a dead-end in terms of
supporting this device on Linux.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>Best
regards, and thanks for your help,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=023585723-11032009>---
Asad</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
class=023585723-11032009></SPAN></FONT> </DIV></BODY></HTML>