Re: Missing LIST_PREV() ?

2007-05-06 Thread Hans Petter Selasky
On Sunday 06 May 2007 13:39, Mark Murray wrote: > Hans Petter Selasky writes: > > Hi, > > > > Why should LISTs only be forward traversable? The following piece of > > code make lists backward traversable: > > No objection to the concept. > > But... > > > /sys/sys/queue.h: > > > > +#define LIST_PREV

Re: Missing LIST_PREV() ?

2007-05-06 Thread Mark Murray
Hans Petter Selasky writes: > Hi, > > Why should LISTs only be forward traversable? The following piece of > code make lists backward traversable: No objection to the concept. But... > /sys/sys/queue.h: > > +#define LIST_PREV(head,elm,field) \ > + (((elm) == LIST_FIRST(head)) ? ((__typeof(elm

Missing LIST_PREV() ?

2007-05-06 Thread Hans Petter Selasky
Hi, Why should LISTs only be forward traversable? The following piece of code make lists backward traversable: /sys/sys/queue.h: +#define LIST_PREV(head,elm,field) \ + (((elm) == LIST_FIRST(head)) ? ((__typeof(elm))0) : \ + ((__typeof(elm))(((uint8_t *)((elm)->field.le_prev)) - \ +

Re: [ANN] unionfs patchset-19-20070504 release, it is now MPSAFE and transparent mode as default

2007-05-06 Thread Danny Braniss
> > Hi, > > So far I've tested it under -current, in my diskless env. where > > /etc & /compat/linux are unionfs'ed with a mfs, and so all seems OK. > > there's an XXX in the linuxulator code saying: > > XXX Untested vs. mount -o union; probably does the wrong thing. > > can you confirm that

Re: [ANN] unionfs patchset-19-20070504 release, it is now MPSAFE and transparent mode as default

2007-05-06 Thread Roman Divacky
> Hi, > So far I've tested it under -current, in my diskless env. where > /etc & /compat/linux are unionfs'ed with a mfs, and so all seems OK. there's an XXX in the linuxulator code saying: XXX Untested vs. mount -o union; probably does the wrong thing. can you confirm that it works ok wit

Re: Writing to a file

2007-05-06 Thread Joseph Koshy
So, could anyone please give me a detailed explanation of how to open a file in kernel and write to it - best data types to use, functions, what to look out for, maybe a link to tutorial or manual that deals with this (if such a thing exists), etc.? I'm not aware of such a tutorial. I would sug

Re: [ANN] unionfs patchset-19-20070504 release, it is now MPSAFE and transparent mode as default

2007-05-06 Thread Danny Braniss
> Hi Guys > > It is my pleasure and honor to announce the availability of > the unionfs patchset-19-20070504. p19 is second patchset after > its merged of FreeBSD. Our improvements works of unionfs are > going step by step. p19 is milestone release. > > Patchset-19-20070504: > For 7-current >

Re: Writing to a file

2007-05-06 Thread Diomidis Spinellis
On May 5, 2007, at 10:29 PM, Diomidis Spinellis wrote: On May 5, 2007, at 9:34 PM, Sonja Milicic wrote: I'm working on an IO logging utility for FreeBSD as my GSoC project, and I have some questions about writing a kernel functions that would open an existing or create a new file (with the f