RTM_LOSING (Re: Is it possible to trace the routing socket messages)

2006-08-18 Thread Dmitry Pryanishnikov
Hello! On Thu, 17 Aug 2006, Robert Watson wrote: This won't give you exactly what you want, but if you don't know about it already, you probably will find it useful. route monitor monitors routing socket messages generated by the kernel, and includes the pid of the process they are destined

Re: mmap() vs. character special file

2006-06-24 Thread Dmitry Pryanishnikov
Hello! On Sat, 24 Jun 2006, Stanislav Sedov wrote: I'm curious about mmap()ing devices (particularly, HDD slices). The manpage mentions character special files only once: You cannot mmap ata devices (as well as scsi ones), since mmap functions was not implemented. Actually, only few devices

Re: Virtual device driver programming

2006-06-23 Thread Dmitry Pryanishnikov
Hello! On Fri, 23 Jun 2006, Johnny Choque wrote: I'm interested in programming a virtual network device driver -Linux concept- on a FreeBSD box. The idea behind of this sort of interface is the following: From the kernel's point of view, a network interface is a software object that can

Simple question about mmap() system call

2006-06-23 Thread Dmitry Pryanishnikov
Hello! I'm writing an utility that should examine some bytes of a large file and modify them - that't all. I've decided to mmap() the file: void *diskp; if ((fd=open(argv[1], O_RDWR)) == -1) err(EX_NOINPUT, Can't open %s for readind and writing, argv[1]); if

Re: Simple question about mmap() system call

2006-06-23 Thread Dmitry Pryanishnikov
Hello! On Fri, 23 Jun 2006, Konstantin Belousov wrote: if ((diskp=mmap(NULL, 512, PROT_READ | PROT_WRITE, 0, fd, 0)) == MAP_FAILED) err(EX_IOERR, Can't mmap() file); shows actual first byte of my file. But modification doesn't get written back to the disk, file

mmap() vs. character special file

2006-06-23 Thread Dmitry Pryanishnikov
Hello! mmap(2) manpage has the following title: NAME mmap -- allocate memory, or map files or devices into memory I'm curious about mmap()ing devices (particularly, HDD slices). The manpage mentions character special files only once: [EINVAL] MAP_ANON has not been

Re: adm1026 support

2006-06-16 Thread Dmitry Pryanishnikov
Hello! On Tue, 13 Jun 2006, Franklin Donan wrote: I want to use healthd to monitor values exported by an adm1026 chip, using the smbus interface. Here's the data sheet for this chip: http://www.analog.com/UploadedFiles/Data_Sheets/779263102ADM1026_a.pdf This chip is smbus iic compatible. I

clamd+libunrar signal 4: how to debug?

2006-05-31 Thread Dmitry Pryanishnikov
Hello! I'm getting pretty repeatable abnormal termination of clamd (ports/security/clamav) compiled with libunrar support on signal 4 (4.11-RELEASE/i386). I've built both clamd and libunrar with debugging info: CFLAGS+= -g LDFLAGS+= -g STRIP= and got the core. However I'm not sure how to

Physical memory access from kld

2005-11-18 Thread Dmitry Pryanishnikov
Hello! I'm trying to add Intel 875P chipset support for ecc.ko module. Basically this module outputs whether chipset supports and utilizes ECC, how much memory does it have, and whether there were memory errors. Well, this chipset has a very confusing architecture. Instead of having all