"Gary T. Corcoran" wrote: > > I'm trying to initialize a network device, and I'm trying to download > code *into* my device from some binary system files. There is no > "user space" or user process, for that matter, to deal with at this point. > I just want to (at this step) open a file(s) directly from my device > driver, read the file(s), and download the relevant parts to my device. Can you repackage the binary as a data-only kld, with a couple of public symbols wrapping the beginning and end of the binary, or a couple of symbols with start and length? You could then have the loader pre- load the .ko at boot time. The only other way is to wait until the system is up and load the code into your driver through an ioctl. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC [EMAIL PROTECTED] http://softweyr.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: How to read a file from a device driver? Alfred Perlstein
- Re: How to read a file from a device driver? Gary T. Corcoran
- Re: How to read a file from a device driver? Alfred Perlstein
- Re: How to read a file from a device driver? Matthew N. Dodd
- Re: How to read a file from a device driver? Kenneth D. Merry
- Re: How to read a file from a device driver? Alfred Perlstein
- Re: How to read a file from a device dri... Andrzej Bialecki
- Re: How to read a file from a device driver? Gary T. Corcoran
- Re: How to read a file from a device dri... Alfred Perlstein
- Re: How to read a file from a device dri... Matthew N. Dodd
- Re: How to read a file from a device driver? Wes Peters
- Re: How to read a file from a device driver? Daniel C. Sobral
- Re: How to read a file from a device dri... Wes Peters
- Re: How to read a file from a device driver? Mark Newton
- Re: How to read a file from a device driver? Darrell Anderson
- Re: How to read a file from a device driver? Gary T. Corcoran