Re: interview question how does application connects to device

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

 



Hi,

On Tue, Jul 5, 2011 at 9:45 AM, Bond <jamesbond.2k.g@xxxxxxxxx> wrote:
> This is an interview question.
> My answer was
> In unix it simply opens the device node as a file and sends/receives
> data and commands from it.
>

A little more detailed method :

Userland read/write to the file -> Calls C Library read/write
functions -> Makes System Calls for read/write -> (now inside kernel)
-> Process the system calls (check parameter, etc) -> Refer the
file_operations structure for that file -> Call the corresponding
read/write function.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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