[lkml]   [2003]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] 2.6.0 EDD enhancements
    On Fri, 2003-12-19 at 15:37, Matt Domsch wrote:
    > Ok, I'll gladly make that change, but I still need a handle on the
    > sdev_gendev.kobj in order to make the symlink:

    the scsi device does its refcounting through the generic device (and
    hence the kobject), so scsi_device_get() does get a handle on the
    kobject for you (as well as doing some checks with the SCSI state model
    and getting a handle on the underlying module).

    > static inline struct device *
    > sdev_to_gendev(struct scsi_device *sdev)
    > {
    > return &sdev->sdev_gendev;
    > }

    I'm not too sure about this...exporting such a function might be seen as
    encouraging further abuse...


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:59    [W:0.019 / U:34.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site