From: nf <nf2@scheinwelt.at>
To: Pascal Schmidt <der.eremit@email.de>
Cc: kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Nonotify 0.3.2 (A simple dnotify replacement)
Date: Sun, 22 Aug 2004 15:34:24 +0200 [thread overview]
Message-ID: <1093181664.4542.47.camel@lilota.lamp.priv> (raw)
In-Reply-To: <E1ByrTz-00003r-8U@localhost>
On Sun, 2004-08-22 at 14:29, Pascal Schmidt wrote:
> On Sun, 22 Aug 2004 05:40:06 +0200, you wrote in linux.kernel:
>
> > 2) The /dev/nonotify device:
> >
> > /dev/nonotify has the only purpose to offer a special stat() call via
> > ioctl to read the contents_mtime field of directories (together with
> > atime, mtime, ctime). The client has to set the 'filename' field of the
> > 'nonotify_stat' structure and receives the four timespec fields updated
> > via ioctl.
>
> A lot of people here (Linus, for instance) frown on ioctl() interfaces.
> They're hard to do right in 32/64bit compat layers, for example. How
> about using a syscall interface instead?
Nonotify uses ioctl mainly for 'pragmatical' reasons. A syscall would be
technically better - that's for sure, actually it was my initial idea to
use one (or to change the stat-call).
But i didn't want to bother people with asking to assign me a
syscall-number before even knowing if they like my idea. And changing it
to use a syscall lateron would be no problem at all from the concept of
nonotify.
Also - as a kernel newbie - i didn't find any good documentation how to
add my own syscall into the kernel. I just wanted to get nonotify
working as an 'optional patch', without changing tons of files.
But you could help me if you have a look at my ioctl function. I'm using
a structure which contains a char* pointer and four timespec fields. Do
you know if this causes problems with 32/64bit compatibility.
Thanks,
Norbert
next prev parent reply other threads:[~2004-08-22 13:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2vRn8-1D3-9@gated-at.bofh.it>
2004-08-22 12:29 ` Pascal Schmidt
2004-08-22 13:34 ` nf [this message]
2004-08-22 16:04 ` Pascal Schmidt
2004-08-22 3:37 nf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1093181664.4542.47.camel@lilota.lamp.priv \
--to=nf2@scheinwelt.at \
--cc=der.eremit@email.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®