Is it possible to only expose `/dev/foo` from the driver and in the app it opens `/dev/foo` to perform read/write operations? This seems to be saving a lot of work.
Karim Yaghmour嚙踝蕭 2012嚙羯7嚙踝蕭10嚙踝蕭P嚙踝蕭嚙瘦UTC+8嚙磕嚙踝蕭9嚙踝蕭54嚙踝蕭27嚙踝蕭g嚙瘩嚙瘦
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
Variables of the opersyshw_device_t type are actually used in com_android_server_OpersysService.cpp, as you can see above. There isn't, however, a global "opersyshw_dev" in that file to hold the value being played with. Instead, the pointer returned by hw_get_module() is passed up to the Java layer and reused when passed later to read() and write().
Sure, you can use this sample with its driver on an actual
device, it'll work just fine. The actual module though ought to
be in device/manufacturer/product instead of sdk/emulator.
-- Karim Yaghmour CEO - Opersys inc. / www.opersys.com http://twitter.com/karimyaghmour
Hi Karim,
I think there is forgotton "opersyshw_device_t* opersyshw_dev;" variable on com_android_server_OperSysService.cpp unless I don't understand the meaning of that?
Do you think we can use this sample on actual device? I think we should implement opersyshw.h on libhardware like emulator based implemantation or not?
Thanks in advance.
10 Temmuz 2012 Salı 04:54:27 UTC+3 tarihinde Karim Yaghmour yazdı: