• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting prefs to my driver (was: reading a file from kernel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting prefs to my driver (was: reading a file from kernel)


  • Subject: Re: Getting prefs to my driver (was: reading a file from kernel)
  • From: Frode Isaksen <email@hidden>
  • Date: Tue, 07 May 2002 10:28:12 +0200

> Hi.
>
> So, now I read up some more on what's been said here before about getting
> preferences or settings for a driver. It seems as the recommened (and
> only..?) way to do this is to have a usermode process feeding sysctls (or
> ioctls) to the driver, as I stated earlier I've got a problem with that
> approach. Let me explain:
>
> The sysctl solution is fine if you have a driver thats loaded at boot-time,
> in that case I could have a Startup Item feeding me the prefs. But, my kext
> is a driver for a USB modem so when it's plugged in I'll have to tell my
> "PrefsLoader" app to start, have it read my file and wait in the kext for it
> to return, all this *before* the user decides to connect. Well, I suppose
> that in most cases there'd be more than enough time but I'm not comfortable
> making assumptions. Is this the way to go after all?
>
> How do you all do it with your drivers? Does all drivers in OSX (that need
> settings) have usermode processes running feeding them settings? Is there
> *really, really, really* no way to read a file?
>
> So, what about the IORegistry then, I remember seeing that it's not saved to
> disk, but is there really nothing the IORegistry can do for me in this dark
> hour?
>
> On the darwin-dev list I read a post from Dean Reece where he said they were
> working on a feature that allowed "per-kext preferences to be stored", any
> news on that?
>
I have exactly the same problem with the PCI and USB drivers for an adsl
modem. I need to know the modulation (G.dmt,ANSI,G.lite) when starting up.
Launching a tool with KUNCExecute fails during boot, and after boot I am not
called any more, since the driver is an Ethernet controller. I chose to use
the non-recommended solution to modify the driver Info.plist. Of course I
will change my driver when a better solution exists. What I really would
like to have is the CFPreferences API for KEXT's.
Frode
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting prefs to my driver (was: reading a file from kernel)
      • From: Dean Reece <email@hidden>
    • Re: Getting prefs to my driver (was: reading a file from kernel)
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Getting prefs to my driver (was: reading a file from kernel)
  • Next by Date: Re: Getting prefs to my driver (was: reading a file from kernel)
  • Previous by thread: Getting prefs to my driver (was: reading a file from kernel)
  • Next by thread: Re: Getting prefs to my driver (was: reading a file from kernel)
  • Index(es):
    • Date
    • Thread