on 28/07/2010 19:59 Pyun YongHyeon said the following: > > When I started to write snd_audiocs(4) for sparc64 I also noticed > that. The practice of sound driver was to explicitly allocate softc > structure in device attach routine and release it after use. I > don't remember details but other parts of sound subsystem seemed to > rely on the structure and changing it to use standard > device_get_softc(9) was not easy task. Oh, I see what you mean. So those drivers do malloc their softc. snd_hda was (is) the only one that got it via device_get_softc, but still used free(9) on it in the case of attachment failure. -- Andriy GaponReceived on Wed Jul 28 2010 - 15:09:29 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC