Re: Minimal?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Gabriel Bogdan (na_at_na.na)
Date: 01/26/05


Date: Wed, 26 Jan 2005 14:12:59 +0200

Static on non-member functions (not from a class) means they are only
accesible withing the same compile unit (.cpp/.c file) IIRC.
It's not really needed for a driver. It's ussualy used to enforce good
programing practices, to restric acces to function that should not be called
from elsewhere, like the private/protected that can be used to member
funtions.

"Joni" <^> wrote in message news:u6CK1s5AFHA.4044@TK2MSFTNGP10.phx.gbl...
> I have this minimal example from the w2k book, it has two
> functions, CreateDevice and DriverUnload. Both these
> functions are declared with 'static', why do we use static
> here?



Relevant Pages

  • Re: I Almost Wish I Still Lived in Tucson
    ... and that "the government and others who profit from red ... IIRC, at one intersection, the yellow was actually ... The driver of a motor vehicle shall not follow another vehicle ...
    (rec.autos.driving)
  • Re: I Almost Wish I Still Lived in Tucson
    ... IIRC, at one intersection, the yellow was actually ... IIRC, the study you have not cited made no such mention of the ... The driver of a motor vehicle shall not follow another vehicle ... That helps me not at all when I am the driver in front. ...
    (rec.autos.driving)
  • Re: [OT] Re: keyboard driver of 2.6 kernel
    ... >>> doesn't exit in 2.4.22 ... IIRC, ... Not in the driver itself, of course, in rpl_ioctl.h and rpl_packet.h. ... Since the driver you ship in the ttyrpld tarball can only be built ...
    (Linux-Kernel)
  • Re: netgear nic
    ... To clarify up a bit: ... the first two, IIRC, hat genuine digital chips on it, the last two ... sisdriver. ...
    (freebsd-questions)