Re: syscall reference



"Bill Cunningham" <nospam@xxxxxxxxx> writes:

In other words IPC looks like a good place to begin learning the kernel.
Even if technically I am not using the kernel. And there is alot more than
pipes, there's signals and so on here but pipes are a good place to start.
Read and write are only a couple of examples of what a complete syscall
reference should give. The trouble is that the linux kernel is living. By
that I mean it's not like and old Unix v6 or 7 for a pdp.

But for those calls -- and, really, for the vast majority of calls a
user needs to deal with -- it is. write() is really simple: you pass
it a file descriptor, the address of a buffer containing data you want
to send, and how many bytes you want to send. It does it. That's
what it did in v6 when I started on an 11/34, and that's what it does
now.

So much has
changed from 2.0 or even the 2.2 code to buy a reference might seem in the
long run fruitless. Then again it might be worth it.

But it hasn't. The stuff that's changed is down in the kernel
internals, and you're not doing anything anywhere near that. The old
4.4bsd ipc tutorial (easily found through google) is as relevant now
as it was in 1980 or whenever it came out.

You've started with an almost-working piece of code you got from
somebody. Want to find out how the calls work? 'man 2 read'
.



Relevant Pages

  • Re: [PROBLEM] Machine Freezes while Running Crossover Office
    ... The kernel includes Linus' changes for pipes to use circular buffers. ... operation (or possibly the window manager, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Is there ZwCreateNamedPipe() ?
    ... The ZwCreateNamedPipeFile call is not exported to the kernel, ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... Especially for pipes between kernel-mode drivers and user-mode ...
    (microsoft.public.development.device.drivers)
  • Re: Pipe buffers limit of 16 * 4K
    ... faced a problem with the 4K buffer limit for the pipes. ... having these in the kernel for toying with minibuffer audio processing. ...
    (Linux-Kernel)
  • Re: Kernel panic when setting up queues via IPFW
    ... > I've just started playing with queues and pipes and I created the ... I can reproduce it everytime on my machine. ... > is issued, a kernel panic occurs. ...
    (freebsd-current)
  • Re: syscall reference
    ... In other words IPC looks like a good place to begin learning the kernel. ... And there is alot more than ... pipes, there's signals and so on here but pipes are a good place to start. ... changed from 2.0 or even the 2.2 code to buy a reference might seem in the ...
    (comp.os.linux.development.system)