• 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: may b a minor error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: may b a minor error


  • Subject: Re: may b a minor error
  • From: Michael Smith <email@hidden>
  • Date: Fri, 16 Jun 2006 22:47:55 -0700


On Jun 16, 2006, at 12:54 PM, Andrew Gallatin wrote:

I'm talking about a scheme where, when the module is loaded, its code
is re-written by the "kernel linker" (or kextload, or whatever does the
relocation when loading a kext) and re-writes KPI functions to do
direct structure access. This re-writing code is kernel dependent
and could be supplied, for example, via the commpage. This would
be similar to what Digital UNIX did when they patched out SMP locks
at runtime on UP systems.

That's a really innovative scheme... you could have little patch areas
that you rewrote all the KPI functions into - and in fact you could optimise
it by copying directly from the KPI function implementation in the kernel.


That way, drivers wouldn't have to leave their object modules, they
could just jump into their own private copies of the functions they
would otherwise have called...

Brilliant.

 = Mike

(Yes, I am well aware of the point you're trying to make. In a few cases
it might actually be useful, but vtable-style indirection isn't the big evil here...)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: may b a minor error
      • From: Andrew Gallatin <email@hidden>
References: 
 >may b a minor error (From: sugumaran narayanan <email@hidden>)
 >Re: may b a minor error (From: Andrew Gallatin <email@hidden>)
 >Re: may b a minor error (From: Terry Lambert <email@hidden>)
 >Re: may b a minor error (From: Andrew Gallatin <email@hidden>)
 >Re: may b a minor error (From: Michael Smith <email@hidden>)
 >Re: may b a minor error (From: Andrew Gallatin <email@hidden>)
 >Re: may b a minor error (From: Michael Smith <email@hidden>)
 >Re: may b a minor error (From: Andrew Gallatin <email@hidden>)
 >Re: may b a minor error (From: Michael Smith <email@hidden>)
 >Re: may b a minor error (From: Andrew Gallatin <email@hidden>)

  • Prev by Date: Re: may b a minor error
  • Next by Date: Is there any dummy provider
  • Previous by thread: Re: may b a minor error
  • Next by thread: Re: may b a minor error
  • Index(es):
    • Date
    • Thread