Re: RE: Blocking process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All ,

Thanks for the info. I got through the link provided below. I would like to put some questions on this.Refer diagram ksys-figure1.png.

http://www.linux.it/~rubini/docs/ksys/ksys.html

1.Is system_call() the interrutp handler for interrupt 0x80.If it is the case sys_socketcall() is the handler for all the socket calls. I am correct?


2.An Interrupt handler can not wait for long time. How the system_call()  [sys_socketcall() it is my requirement] is waiting for long time till the blocking function returns(for example sys_read or sys_accept)


3.A software interrupt has come and control is changed to corresponding  kernel function, How actully the function is returning the values and output parameters to the appropriate process which has invoked that kernel fucntion. I mean to say that how the kernel function notifies the application that it has completed and gives the return values. since the communication is happening through the registers.
Refering the figure ksys-figure1.png, how handle signal restore the application.

Thanks in advance.

Regards

Jhoney

On Fri, 18 Mar 2005 Srinivas G. wrote :
>Dear All,
>
>Here is link which shows how the system call will work in the user
>space.
>http://www.linux.it/~rubini/docs/ksys/ksys.html
>
>Regards,
>Srinivas G
>
> > -----Original Message-----
> > From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-
> > bounce@xxxxxxxxxxxx] On Behalf Of Gaurav Dhiman
> > Sent: Thursday, March 17, 2005 9:44 PM
> > To: Renaud Lienhart
> > Cc: Gaurav; jhoney jhoney; kernelnewbies@xxxxxxxxxxxx
> > Subject: Re: Blocking process
> >
> > On Wed, 16 Mar 2005 20:07:03 +0100, Renaud Lienhart
> > <renaud.lienhart@xxxxxxx> wrote:
> > > Gaurav wrote:
> > > > [...]
> > > > instruction, which actually switches the CPU mode from
> > > > user to kernel mode (ring0 to ring3), at this time the
> > >                        ^^^^^^^^^^^^^^
> > > Well actually ring3 is the user mode, and ring0 is the kernel
> > > mode. So you should have read "ring3 to ring0" :)
> > >
> > > --
> > > Renaud Lienhart
> >
> > sorry, my mistake,  yes ring3 is user mode and ring0 is kernel mode.
> >
> > --gd
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:      http://mail.nl.linux.org/kernelnewbies/
> > FAQ:          http://kernelnewbies.org/faq/
>




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux