Howto pass pointer to char parameter to kernel via copy_to_user()

by Danke Xie » Wed, 21 Jul 2010 04:25:56 GMT

Sponsored Links
 Hi Dwi,

I couldn't really figure out what is being done in the code. But I
think I noticed a reason why the call might fail (though not 100%
sure). You allocated one byte with kmalloc, which is sizeof(char), but
you would be copying 4 bytes into the area, that is sizeof(tmp). I
think that's why you got a seg fault. Do you think so?



Other Threads

1. CPhone To Rival OPhone, iPhone

Operator lokal kalau bundling android dg nama KlePhone mungkin laku kali
yah, sebab namanya indonesia dan familiar banget..hehehehehe.


CPhone To <>
Rival OPhone, iPhone

by Rob <>
Jackson on September 21st, 2009 




China Unicom will have Apple's iPhone. China Mobile has their Android-based
Open Mobile System phone dubbed OPhone. Now China Telecom could acquire a
phone/platform based on Android and created by Access called CPhone:


Interesting UI. ClonedInChina
work-comm-china.html>  called it "cartoon style" while Engadget
to-launch-cphone-custom-androi/>  was a little more liberal with their
criticism, insinuating it was created by drunk people. The Access CPhone
comes with Android 1.5 and apparently the media are already calling it an
OPhone killer. Funny how they just glazed right over that "i" one isn't it?

Also interesting that they chose a consonant instead of a vowel to precede
"phone" - maybe that is the differentiation they were seeking? The only
vowels remaining are A, E, U and Y if you accept it as a vowel. APhone,
EPhone, UPhone, YPhone? I would take the "E" over "C" any day and the "A"
and "Y" just seem plain silly. Does the "C" even stand for something? China?
China Telecom? Or am I missing something here?


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group, please visit the following page:

2. Anyone use SIM5210 as baseband module?

I want to use it with my ARM11 S3C6410 board. Any suggestions and comments?
Any information?
Thanks a lot!
Leon Huang
USA/Canada: (647)723-8769 or (416)877-2393
Skype: leonhuang.usa


3. the rooted G1 phone == the dev phone == the unlock G1 phone ?

4. surface flinger restarts phone

5. catching "The application XXX (xxx)...has stopped unexpectedly. Please try again. [Force close]"

6. Any news about ADC2 ???

7. Making UPNP (Universal Plug and Play) Protocol work for Android