On Sun, Oct 23, 2022 at 3:41 PM Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > > On Sun, Oct 23, 2022 at 12:46:22AM +0300, Oded Gabbay wrote: > > +/** > > + * accel_open - open method for ACCEL file > > + * @inode: device inode > > + * @filp: file pointer. > > + * > > + * This function must be used by drivers as their &file_operations.open > > method. > > + * It looks up the correct ACCEL device and instantiates all the per-file > > + * resources for it. It also calls the &drm_driver.open driver callback. > > + * > > + * RETURNS: > > + * > > + * 0 on success or negative errno value on failure. > > + */ > > +int accel_open(struct inode *inode, struct file *filp) > > +{ > > + struct drm_minor *minor; > > + > > + minor = drm_minor_acquire(iminor(inode), true); > > + if (IS_ERR(minor)) > > + return PTR_ERR(minor); > > + > > + return __drm_open(inode, filp, minor); > > +} > > +EXPORT_SYMBOL(accel_open); > > EXPORT_SYMBOL_GPL() please. > > And again, this should probably to into drivers/accel/ not here. Got it, will do. Thanks, Oded > > thanks, > > greg k-h
- Re: [RFC PATCH 2/3] drm: define new accel major an... Greg Kroah-Hartman
- Re: [RFC PATCH 2/3] drm: define new accel majo... Oded Gabbay
- Re: [RFC PATCH 2/3] drm: define new accel ... Dave Airlie
- Re: [RFC PATCH 2/3] drm: define new ac... Jeffrey Hugo
- [RFC PATCH 1/3] drivers/accel: add new kconfig and upda... Oded Gabbay
- Re: [RFC PATCH 1/3] drivers/accel: add new kconfig... Greg Kroah-Hartman
- Re: [RFC PATCH 1/3] drivers/accel: add new kconfig... Jeffrey Hugo
- [RFC PATCH 3/3] drm: add dedicated minor for accelerato... Oded Gabbay
- Re: [RFC PATCH 3/3] drm: add dedicated minor for a... Greg Kroah-Hartman
- Re: [RFC PATCH 3/3] drm: add dedicated minor f... Oded Gabbay
- Re: [RFC PATCH 3/3] drm: add dedicated minor for a... Jeffrey Hugo
- Re: [RFC PATCH 3/3] drm: add dedicated minor f... Oded Gabbay
- Re: [RFC PATCH 3/3] drm: add dedicated min... MichaĆ Winiarski
- Re: [RFC PATCH 3/3] drm: add dedicated... Oded Gabbay
- Re: [RFC PATCH 3/3] drm: add dedicated minor for a... Jiho Chu
- Re: [RFC PATCH 0/3] new subsystem for compute accelerat... Bagas Sanjaya
- Re: [RFC PATCH 0/3] new subsystem for compute acce... Greg Kroah-Hartman
- Re: [RFC PATCH 0/3] new subsystem for compute accelerat... Thomas Zimmermann