Re: heci: a new driver for review and testing

2011-01-26 Thread Lawrence Stewart
Hi Andriy, On 10/15/09 04:12, Andriy Gapon wrote: > > Some time ago I posted some ideas about HECI/MEI driver for FreeBSD: > http://docs.freebsd.org/cgi/mid.cgi?4968E9A1.3080006 > > I actually got around to implementing it (in initial/basic form): > http://people.freebsd.org/~avg/heci.tgz An ol

Re: Exporting kernel symbols

2011-01-31 Thread Lawrence Stewart
On 01/24/11 15:25, Neel Natu wrote: > Hi Ali, > > On Sat, Jan 22, 2011 at 7:20 PM, Ali Mashtizadeh > wrote: >> Hi Folks, >> >> I tried to build a geom kernel module that uses the alq(9) facility to >> log some data. The module builds fine but it seems that the kernel >> isn't exporting the alq(9

Re: Exporting kernel symbols

2011-01-31 Thread Lawrence Stewart
On 02/01/11 15:23, Ryan Stone wrote: > Make sure that your module uses MODULE_DEPEND to note its dependency > on altq. If altq is loaded as a module the kernel linker will only be > able to resolve symbols from altq if your module uses MODULE_DEPEND > properly. What you say is correct, but note f

Re: alq_open_flags() panics in _mtx_lock_flags()

2011-10-02 Thread Lawrence Stewart
[trimmed current@ from CC] Hi Lev, On 10/03/11 02:32, Lev Serebryakov wrote: Hello, FreeBSD. I'm trying to create logging queue with alq kernel API. I call alq_open_flags() like this in my module: error = alq_open_flags(&sc->sc_alq, sc->sc_vnode_name, curthread->td_ucred, ALQ_DEFAULT

Re: Does anyone use nscd?

2011-10-04 Thread Lawrence Stewart
On 10/05/11 02:20, Dag-Erling Smørgrav wrote: Does anyone actually use nscd? Yes, particularly for caching LDAP data. I ask because when I cleaned up a slew of aliasing bugs a couple of years ago, I believe I may have introduced a bug; I got exactly two complaints, and neither of the complain

Re: Does anyone use nscd?

2011-10-06 Thread Lawrence Stewart
On 10/05/11 19:43, Dag-Erling Smørgrav wrote: [snip] While we're at it, I'd be very grateful if someone could email me a quick and dirty guide to setting up an LDAP server for testing. I have too much on my plate right now to start reading documentation... A bit dated, but this build guide is

Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Lawrence Stewart
[reposting from freebsd-arch@ - was probably the wrong list] Hi all, I've had use for these a few times now when wanting to restart a loop at a previously found element, and wonder if there are any thoughts about sticking them (and equivalents for other list types) in ? Cheers, Lawrence #define

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Lawrence Stewart
Hi Alfred, On 05/01/13 14:10, Alfred Perlstein wrote: > On 4/30/13 8:57 PM, Lawrence Stewart wrote: >> [reposting from freebsd-arch@ - was probably the wrong list] >> >> Hi all, >> >> I've had use for these a few times now when wanting to restart a loop

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-04-30 Thread Lawrence Stewart
On 05/01/13 15:29, Poul-Henning Kamp wrote: > In message <518092bf.9070...@freebsd.org>, Lawrence Stewart writes: >> [reposting from freebsd-arch@ - was probably the wrong list] > >> #define TAILQ_FOREACH_CONTINUE(var, head, field) \ > > Obligatory

Re: Adding a FOREACH_CONTINUE() variant to queue(3)

2013-05-01 Thread Lawrence Stewart
On 05/01/13 15:59, Lawrence Stewart wrote: > On 05/01/13 15:29, Poul-Henning Kamp wrote: >> In message <518092bf.9070...@freebsd.org>, Lawrence Stewart writes: >>> [reposting from freebsd-arch@ - was probably the wrong list] >> >>> #define

Re: A problem with alq module!

2013-05-15 Thread Lawrence Stewart
On 05/13/13 16:37, Computer Network Man wrote: > Dear Guys; > In a fresh FreeBSD 9 or 9.1 Release if you just run these commands: > # kldload alq > # kldunload alq > # init 0 or shutdown -p now > it will panic! > maybe it's a bug. > We have a module which uses alq API's. > MODULE_DEPEND(mymodul

zfsloader triggering reset when interacting with v86int()

2013-05-21 Thread Lawrence Stewart
Hi all, I have an ageing Toshiba Portege R600 laptop (Intel ULV SU9400 1.4GHz Core2 CPU, 3GB RAM) running the latest v3.2 BIOS. I recently stuck a new Samsung 840 Pro 256GB SSD into it and decided to do my usual trick of dual booting Windows 7 and FreeBSD-on-ZFS-root. Windows 7 won't boot from a G

Re: A problem with alq module!

2013-05-23 Thread Lawrence Stewart
On 05/23/13 17:03, Computer Network Man wrote: > Dear Lawrence; > Wow! many thanks for your patch. We tested and it worked and solved our > problem. Committed. Thanks for the bug report and for testing the patch. Cheers, Lawrence ___ freebsd-hackers@fre

Re: sosend() and mbuf

2009-08-04 Thread Lawrence Stewart
Maslan wrote: yes kio http://people.freebsd.org/~pjd/misc/kernio/ However, It's outdated. No, man 9 ALQ is your friend. Works a treat. Cheers, Lawrence ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hac

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Lawrence Stewart
On 02/01/10 22:02, Lukasz Jaroszewski wrote: Hello, I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. sta

A cookie for anyone who can solve this C/macro problem...

2010-04-15 Thread Lawrence Stewart
Hi All, I've hit a road block that I'm hoping people with better C/macro fu can help me with. It also may be the case that what I'm trying to do can't be done, so I welcome alternative suggestions as well. The problem: I'm working on a KPI to modularise congestion control support in the ker

Re: A cookie for anyone who can solve this C/macro problem...

2010-04-16 Thread Lawrence Stewart
On 04/15/10 23:17, Lawrence Stewart wrote: Hi All, I've hit a road block that I'm hoping people with better C/macro fu can help me with. It also may be the case that what I'm trying to do can't be done, so I welcome alternative suggestions as well. The problem: I&#

Writing a plain text file to disk from kernel space

2007-05-14 Thread Lawrence Stewart
nts/functions/structs in the kernel. Something similar for filesystem related tasks would be most useful. I suspect that once I understand the mechanics of where thread struct pointers come from and how to get my hands one one from within the kernel, I'll be able to get the rest going. Man

Re: Writing a plain text file to disk from kernel space

2007-05-15 Thread Lawrence Stewart
Hi Marc, Marc Lörner wrote: [snip] > > BTW, you can get an thread-struct pointer from curthread (c.f. sys/pcpu.h). > [snip] Thanks very much for the reply. "curthread" is the missing key that I've been looking for! Thank you so much. I've been banging my head against a brick wall for days

Re: Writing a plain text file to disk from kernel space

2007-05-21 Thread Lawrence Stewart
regarding how file IO and threading work and how I can get cross-thread file IO working would be most welcome. Cheers, Lawrence Ivan Voras wrote: Lawrence Stewart wrote: I'll have a play around and report back to the list what I find for archival purposes. Please do, and also cons

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
ernel when called from within a function that is acting as a pfil output hook? Cheers, Lawrence Dag-Erling Smørgrav wrote: Lawrence Stewart <[EMAIL PROTECTED]> writes: I suspect that you can't use a file descriptor that was opened in one thread in a completely different thread,

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
Comments inline... Dag-Erling Smørgrav wrote: Lawrence Stewart <[EMAIL PROTECTED]> writes: After further investigation, it turns out that the pfil input hook I'm using, which catches packets as they traverse up the network stack, has no problems, and will happily write to the fil

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
To add another interesting bit to the puzzle... if I install both input and output pfil hooks, and use ping to generate network traffic, the writing to file in both the input and output hook works perfectly as well - even at high packet rates. Here's the weird bit: the second I try and initiate

Re: Writing a plain text file to disk from kernel space

2007-05-24 Thread Lawrence Stewart
Comments inline... Dag-Erling Smørgrav wrote: Lawrence Stewart <[EMAIL PROTECTED]> writes: Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: Since you are writing kernel code, I assume you have KDB/DDB in your kernel and know how to use it. I don't know how t

Re: Writing a plain text file to disk from kernel space

2007-06-05 Thread Lawrence Stewart
Hi John, Thanks for the reply and additional information on locks. The solution I've just completed working on is designed exactly as you describe. We're about to begin testing and evaluating the module, and we'll be releasing the code and 2 technical reports related to it within the coming w

Re: Writing a plain text file to disk from kernel space

2007-06-24 Thread Lawrence Stewart
Ivan Voras wrote: Lawrence Stewart wrote: I'll have a play around and report back to the list what I find for archival purposes. Please do, and also consider writing a short and instructive tutorial on it! Many people have asked this same question without a to-the-point answer. H

Re: netgraph question

2008-01-11 Thread Lawrence Stewart
Hi Subhash, Subhash Gopinath wrote: Hello folks, I am looking at writing an application program to tap certain ipv6 packets (say icmpv6) using netgraph. The application has to do some processing, before kernel can proceed with those packets. I have vaguely understood netgraph, and I see that I

Re: netgraph question

2008-01-13 Thread Lawrence Stewart
rewall code is probably a good place to start looking for ideas. Thanks, -Subhash On Jan 11, 2008 10:32 PM, Lawrence Stewart <[EMAIL PROTECTED]> wrote: Hi Subhash, Subhash Gopinath wrote: Hello folks, I am looking at writing an application program to tap certain ipv6 packets (say icmpv6

Re: adding sysctls

2008-06-18 Thread Lawrence Stewart
Zane C.B. wrote: Any one know of any recent documentation for adding a sysctl to a kernel module for FreeBSD 6 and 7? This might help: Title: "An Introduction to FreeBSD 6 Kernel Hacking" URL: http://caia.swin.edu.au/reports/070622A/CAIA-TR-070622A.pdf Disclaimer: I co-wrote it. Cheers, Lawr

Re: RFC Newer binutils

2008-08-10 Thread Lawrence Stewart
Pegasus Mc cleaft wrote: Hello everyone, I was wondering if anyone knows if there is planned an update to the binutils for the base system planned? [snip] See the July 2008 thread titled "Updating src/contrib/binutils" on freebsd-current. Cheers, Lawrence ___