lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0702091450120.25221@pentafluge.infradead.org>
Date:	Fri, 9 Feb 2007 14:51:12 +0000 (GMT)
From:	James Simmons <jsimmons@...radead.org>
To:	Greg KH <greg@...ah.com>
cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: device_destroy


> > While porting over a few class_devices I discovered a problem with 
> > device_destroy. It uses a dev_t which several classes don't use. 
> > Should all classes require a dev_t or should we just pass in the device
> > itself?
> 
> As you don't have a dev_t, then you have a handle to the 'struct device'
> itself, right?  Then just call device_unregister(), that's all that
> device_destroy() does after it finds the device in the list of devices
> associated with the class.
> 
> Does this help?

Okay. I needed to know if calling device_unregister directly was valid.
Thank you.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ