Re: ioctl

2007-05-15 Thread Viktor Vasilev
On Monday 14 May 2007 15:28 Dag-Erling Smørgrav wrote: > Mohsen Pahlevanzadeh <[EMAIL PROTECTED]> writes: > > Our FreeBSD is 4.11 because we can't use another version. > > In that case, we can't help you. Maybe he still has a chance. The following works on FreeBSD 4.9 for ATA devices. I could onl

Re: ioctl

2007-05-13 Thread Viktor Vasilev
On Sunday 13 May 2007 18:17 Mohsen Pahlevanzadeh wrote: > On 5/13/07, Viktor Vasilev <[EMAIL PROTECTED]> wrote: > > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > I need to a code piece that it gets serial number of hdd. > >

Re: ioctl

2007-05-13 Thread Viktor Vasilev
On Sunday 13 May 2007 16:57 Viktor Vasilev wrote: > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > Dear all, > > I need to a code piece that it gets serial number of hdd. > > Please help me > > For an ATA disk you can use the IOCATAGPARM ioctl to get

Re: ioctl

2007-05-13 Thread Viktor Vasilev
On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > Dear all, > I need to a code piece that it gets serial number of hdd. > Please help me For an ATA disk you can use the IOCATAGPARM ioctl to get the information. See the attached C source for example. Be sure to have a look at /usr/src

Re: Forcing C program to core dump

2006-12-06 Thread Viktor Vasilev
On Wednesday 06 December 2006 20:02 Garrett Cooper wrote: > Hello, > This may be obvious to some, but after some Googling (apparently > with the wrong search terms, perhaps) and reading the gcc/gdb manpages, > I can't seem to find out how to get a program to produce core dumps. > So I was w

Re: port of NetBSD IrDA frame level driver to FreeBSD

2006-06-05 Thread Viktor Vasilev
On Monday 05 June 2006 10:45 Tofik Suleymanov wrote: > Hello, > after patching my FREEBSD-6.1-RC with your irda patchset - i've loaded > two produced kernel modules and reattached my usb-irda device and got > following in system log: > --- start --- > Jun 5 11:30:48 paranoia kernel: ustir_match:

freebsd port of gnu parted

2006-04-15 Thread Viktor Vasilev
Hi, I've spent some time this saturday trying to port gnu parted over to FreeBSD. You can find the result and some instructions on building it here: http://0xdeadc0de.net/v/parted/ For the moment it only handles ATA drives. A chart describing parted's features can be found here: http://ww

Looking for advice on chasing a kernel memory leak

2006-02-22 Thread Viktor Vasilev
Hello, I'm having trouble with a WARP (http://www.pcengines.ch/wrap.htm) board running m0n0wall v1.21 (stripped down FreeBSD 4.11-RELEASE-p13). It's serving as an internet gateway and the problem is, that after some time it starts blocking traffic and doesn't do NAT anymore. The box is handling

sysprof, interrupting threads

2005-11-02 Thread Viktor Vasilev
Hello fellow hackers, I was thinking of porting the linux sysprof kernel and userland tools to FreeBSD. I spent some time studying the code and wrote a skeleton driver that uses the callout mechanism to wake up periodically. That was only to discover, that the context in which the driver awakes is

Re: select(2) timeout precision

2005-11-02 Thread Viktor Vasilev
On Wed, Nov 02, 2005 at 01:31:39AM -0600, Mike Silbersack wrote: > > On Tue, 1 Nov 2005, Viktor Vasilev wrote: > > >With FreeBSD 5.4-RELEASE I almost constantly get ~2 microseconds > >delta. That is with 100HZ kernel on PIII 500MHz or Sempron 64 2800+ > >

select(2) timeout precision

2005-11-01 Thread Viktor Vasilev
Hello fellow hackers, I'm writing a piece of code, that basically does the following in a thread: tick.tv_sec = 0; tick.tv_usec = 1; gettimeofday(&t1, NULL); select(0, NULL, NULL, NULL, &tick); gettimeofday(&t2, NULL); With FreeBSD 5.4-RELEASE I almost constantly get ~2 microse

NetBSD irframe and ustir port to FreeBSD

2005-09-09 Thread Viktor Vasilev
Hello fellow hackers, I'm porting the NetBSD IrDA frame level driver irframe[1] to FreeBSD. The port also, for now, includes a driver for one of the USB-IrDA bridges supported by NetBSD - ustir[2] and a modified version of the comms/birda suite. The initial work is done and both drivers compile an

Re: raw socket programming

2003-07-07 Thread Viktor Vasilev
Hi, On Sun, Jul 06, 2003 at 05:14:38AM +0300, Alin-Adrian Anton wrote: > Well, I don't wanna be idiot, perhaps I am too tired, but n_long appears > in ip.h defined as : > > beast# grep ipt_time /usr/include/netinet/ip.h >union ipt_timestamp { >n_long ipt_time[1]; >