Opening a device driver file.

2012-12-17 Thread Niroj Pokhrel
Hi, I have been trying to open a device driver after inserting it in the kernel from the userspace. Everything seems to be fine, the class is created and is also exported to the device directory but there seems to be some problem as every time I try to open it, the open process fails. My code is be

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Anand Arumugam
On Mon, Dec 17, 2012 at 2:02 AM, Ritesh Harjani wrote: > Hi Yann, > > > On Mon, Dec 17, 2012 at 3:12 PM, Yann Droneaud wrote: > >> Le lundi 17 décembre 2012 à 12:41 +0530, Ritesh Harjani a écrit : >> > Hi Everyone, >> > >> > When this command (at+cfun=1,1) is executed on phone, it does a >> > rebo

Re: sysfs: pass function pointers to kernel (not just a value through attribute)

2012-12-17 Thread Yann Droneaud
Le lundi 17 décembre 2012 à 10:11 -0500, Terry Hsu a écrit : > Hello everyone, > > > I am looking for some mechanism for userspace tasks to pass certain > functions to kernel and let the kernel execute these functions on > behalf of userspace tasks. I know that sysfs can be used with kobject > em

8250 serial device named "ttsN" ?

2012-12-17 Thread Woody Wu
Hi, Does anyone remember, in what kernel version, the 8250/16550 serial devices are named after ttsN, i.e., tts0, tts1, tts2? Thanks in adavnce. -- woody I can't go back to yesterday - because I was a different person then. ___ Kernelnewbies maili

sysfs: pass function pointers to kernel (not just a value through attribute)

2012-12-17 Thread Terry Hsu
Hello everyone, I am looking for some mechanism for userspace tasks to pass certain functions to kernel and let the kernel execute these functions on behalf of userspace tasks. I know that sysfs can be used with kobject embedded into internal kernel structure to access kernel variables. But is the

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Anuz Pratap Singh Tomar
On Mon, Dec 17, 2012 at 7:11 AM, Ritesh Harjani wrote: > Hi Everyone, > > When this command (at+cfun=1,1) is executed on phone, it does a reboot. I > want to know which and how this command calls the kernel level functions. > I googled this, but seems like all the data explains only about AT comma

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Yann Droneaud
Hi, Le lundi 17 décembre 2012 à 15:32 +0530, Ritesh Harjani a écrit : > So, what I am asking for is not any hardware problem. What I have > figured out that, this command (at+cun=1,1) calls for sysrq reset > which does a emergency restart. That's the problem in the first place. This function

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Ritesh Harjani
Hi Yann, On Mon, Dec 17, 2012 at 3:12 PM, Yann Droneaud wrote: > Le lundi 17 décembre 2012 à 12:41 +0530, Ritesh Harjani a écrit : > > Hi Everyone, > > > > When this command (at+cfun=1,1) is executed on phone, it does a > > reboot. I want to know which and how this command calls the kernel > >

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Yann Droneaud
Le lundi 17 décembre 2012 à 12:41 +0530, Ritesh Harjani a écrit : > Hi Everyone, > > When this command (at+cfun=1,1) is executed on phone, it does a > reboot. I want to know which and how this command calls the kernel > level functions. > I googled this, but seems like all the data explains only