RE: Kernel compilation error.

2001-03-23 Thread Dmitry Dicky
On 23-Mar-01 Mark Sergeant wrote: > pci0: (vendor=0x8086, dev=0x7195) at 0.1 irq 5 > pci0: (vendor=0x8086, dev=0x7196) at 0.2 irq 5 > Mark, this is Intel 440 MX sound. I sent the driver code to Cameron Grant a while ago. So, it should appear in the CVS tree soon. Dmitry. *

stupid device driver question

2001-03-02 Thread Dmitry Dicky
Hi fellows, I'm writing some device driver which should pass some data to the user space. The part of the device read routine looks as follows: -- int dev_read(dev_t dev, struct uio *uio, int ioflag) { int err = 0; /* ... */ amnt = MIN(uio->uio_resid, cnt

Re: warning in free():

2001-02-22 Thread Dmitry Dicky
Also, if you do something like: void *ptr = malloc(size); ... ptr++; free() will complain about it. Make sure you are not modifying ptr after it has been malloc()ed. On 22-Feb-01 Alfred Perlstein wrote: > * Madhavi Suram <[EMAIL PROTECTED]> [010222 05:09] wrote: >> >

No Subject

2001-02-07 Thread Dmitry Dicky
unsubscribe freebsd-hackers To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

unsubscribe freebsd-hackers

2001-02-07 Thread Dmitry Dicky
unsubscribe freebsd-hackers To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

boot microsloth windoze 2000

2001-01-15 Thread Dmitry Dicky
Hi fellows, Having nothing to do I installed windoze and faced with a problem: I have freebsd on my hard drive 0 and windows 2000 on HD1. Both bootable. On boot from HD0 Boot Easy displays prompt FreeBSD F1 Disk1 F5 When I push F5 FreeBSD boots. BUt I thought that windoze should. If I disable

recvfrom() and signals

2000-12-19 Thread Dmitry Dicky
Hello fellows, I just faced with a problem of a strange (may be not documented) recvfrom() behaviour. The fragment of the code is: ... signal(SIGALRM, timeouttrap); alarm(10); i = recvfrom(sock, buf, len, 0, from, fromlen); printf("%d bytes received\n",i); v

RE: Semaphore blocking and signal handling

2000-11-21 Thread Dmitry Dicky
Hi, easy: --- extern int errno; int sem_lock(int semnumb) { struct sembuf sb[2]; sb[0].sem_num = semnumb; sb[0].sem_op = -1; sb[0].sem_flg = 0; again: if( semop(sh->sem, sb,1) ) { errmsg("Semaphore %d erorr: %s\n",sh->sem, strerror(errno));