> > > Hey, that's not fair :-)  I'd like to know how to do things the rigth way.
> > 
> > You'll need to tell us what it is that you're actually doing, then, since 
> > it's hard to guess from a tiny snippet like that. 8)
> 
> Well, but if you didn't know, how could you tell that I'm doing something
> very wrong then? :-)

Because dinking with PCI configuration space is usually the wrong thing 
to do from userland.

> I was porting (that is, it's not mine) some linux code that walks thru PCI
> bus, searches for a particular device, and when it finds any, figures out
> their parameters and fills some structures.
> 
> This code is used, actually, in char device driver.

Mm, so what's it doing in userspace? 8)

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to