Skip to content

Commit 5bbf92d

Browse files
Gabriel Krisman Bertazidanvet
authored andcommitted
drm: Export drm_ioctl_permit to kernel-doc
drm_ioctl_permit is exported but missed a kernel-doc style documentation. Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20161228143216.26821-5-krisman@collabora.co.uk
1 parent 8caead1 commit 5bbf92d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/gpu/drm/drm_ioctl.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,17 @@ static int drm_version(struct drm_device *dev, void *data,
478478
return err;
479479
}
480480

481-
/*
481+
/**
482482
* drm_ioctl_permit - Check ioctl permissions against caller
483483
*
484484
* @flags: ioctl permission flags.
485485
* @file_priv: Pointer to struct drm_file identifying the caller.
486486
*
487487
* Checks whether the caller is allowed to run an ioctl with the
488-
* indicated permissions. If so, returns zero. Otherwise returns an
489-
* error code suitable for ioctl return.
488+
* indicated permissions.
489+
*
490+
* Returns:
491+
* Zero if allowed, -EACCES otherwise.
490492
*/
491493
int drm_ioctl_permit(u32 flags, struct drm_file *file_priv)
492494
{

0 commit comments

Comments
 (0)