Date: Fri, 17 Jul 2009 11:10:17 -0400 From: "Chris Harrer" <cjharrer@comcast.net> To: <freebsd-drivers@freebsd.org> Subject: Driver development question Message-ID: <002801ca06f0$b1d42af0$157c80d0$@net>
next in thread | raw e-mail | index | archive | help
Hi All, I'm hoping someone can point me in the right direction... I'm developing a FreeBSD driver for a PCIe card. The driver controls a hardware device that has DRAM and various state information on it. I'm trying to mimic functionality I have for other OS support such that I can dump memory and state information from the card to a file I create from within my driver (kernel module). For example, in a Linux driver I use filp_open to create the dump file (represented by fp), then use fp->f_op->write to put information into the file. FreeBSD doesn't have filp_* API's. I've tried searching for example drivers and googling for file API's from kernel modules to no avail. Can someone please offer some guidance as to how I might proceed here? Thanks in advance and any insight would be most appreciated! Cheers, Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002801ca06f0$b1d42af0$157c80d0$>