[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090217130119.GA2427@yzhao-otc.sh.intel.com>
Date: Tue, 17 Feb 2009 21:01:19 +0800
From: Yu Zhao <yu.zhao@...el.com>
To: "greg@...ah.com" <greg@...ah.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v9 6/7] PCI: document SR-IOV sysfs entries
On Tue, Feb 17, 2009 at 08:50:21PM +0800, Yu Zhao wrote:
> Hi Greg,
>
> The `struct device' is preferred over the `struct kobject' in all cases
> that create subdirectory in sysfs, is this true?
>
> I'd like to create a subdirectory under PCI device sysfs directory and
> put some symbol links into that directory (only symbol links). Should I
> use `device' or `kobject'? Currently I use `device' and get two extra
> file/directory (uevent and power) which look like useless for my case
> because this subdirectory doesn't reflect a real device.
>
> I checked some code and found they use kobject_init_and_add(). Should
Oh, sorry. I meant to say kobject_create_and_add() here.
> I use it instead, or keep using the `device'?
>
> Please advise.
>
> Regards,
> Yu
--
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