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] [thread-next>] [day] [month] [year] [list]
Message-ID: <8b67d60712201353y71a85498p9d77f1f21761856c@mail.gmail.com>
Date:	Thu, 20 Dec 2007 21:53:54 +0000
From:	"Adrian McMenamin" <lkmladrian@...il.com>
To:	"Paul Mundt" <lethal@...ux-sh.org>,
	"Adrian McMenamin" <lkmladrian@...il.com>,
	linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org,
	linux-sh@...r.kernel.org, axboe@...nel.dk
Subject: Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

On 16/12/2007, Paul Mundt <lethal@...ux-sh.org> wrote:

>
> Also, __devinit/__devexit annotations?
>

Is there any difference between __init and __devint? I am using
__init/__exit already

> > +static struct platform_driver gdrom_driver = {
> > +     .probe = probe_gdrom,
> > +     .remove = remove_gdrom,
>
> __devexit_p()?
>
> > +static void __exit exit_gdrom(void)
> > +{
> > +     blk_cleanup_queue(gd.gdrom_rq);
> > +     free_irq(HW_EVENT_GDROM_CMD, &gd);
> > +     free_irq(HW_EVENT_GDROM_DMA, &gd);
> > +     del_gendisk(gd.disk);
> > +     if (gdrom_major)
> > +             unregister_blkdev(gdrom_major, GDROM_DEV_NAME);
> > +     platform_device_unregister(pd);
> > +     platform_driver_unregister(&gdrom_driver);
> > +     if (gd.toc)
> > +             kfree(gd.toc);
> > +}
> > +
> Ah, here's where you do the rest of the cleanup. This is non-intuitive,
> remove should balance the work done by probe and exit the work done by
> init.
>
--
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