Thread (1 message) 1 message, 1 author, 2021-09-10

Re: [PATCH v2] drivers/cdrom: improved ioctl for media change detection

From: Phillip Potter <phil@philpotter.co.uk>
Date: 2021-09-10 08:00:03
Also in: lkml

On Thu, Sep 09, 2021 at 06:25:35PM -0700, Randy Dunlap wrote:
I have no problem with Jens's suggestion.  It would look more like this:

+{
+	__s64	last_media_change;	/* Timestamp of the last detected media
+					 * change in ms. May be set by caller, updated
+					 * upon successful return of ioctl.
+					 */
+	__u64	media_flags;		/* various <struct> flags */

#define MEDIA_CHANGED			0x1 /* Set to 1 by ioctl if last detected media */
/* other bits of media_flags available for future use */


and not having __u64 has_changed;
which is overkill for a flag.

-- 
~Randy
Yeah I like this, good idea. Thanks.

Regards,
Phil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help