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?

Regards,
Danke




-- 



Other Threads

1. statelistdrawable in xml

How do you make a StateListDrawable xml file in eclipse.  While trying
to follow this tutorial 
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
eclipse won't let me make an android xml file in the drawable folder,
it forces me to pic a resource other than drawable.

-- 

2. switch soundtracks of an mp4 file

Hey,

I have written a little videoplayer for android and now I'm looking
for a solution to switch between two or more soundtracks which are in
the video container. Is this even possible with the standard
mediaplayer class?

-- 

3. Access to AT command interface of GSM radio

4. null returned for number

5. listactivity within a layout

6. Mod: Gathering ID Android bulan Agustus 2010

7. Developing a website for nice/elegant visualization in Android Tablet...