Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl.c Create Date:2022-07-28 18:21:08
Last Modify:2020-03-18 07:59:52 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get keyrings subsystem capabilities.

Proto:long keyctl_capabilities(unsigned char __user *_buffer, size_t buflen)

Type:long

Parameter:

TypeParameterName
unsigned char __user *_buffer
size_tbuflen
1696  size = buflen
1698  If size > 0 Then
1699  If size > size of keyrings_capabilities Then size = size of keyrings_capabilities
1701  If copy_to_user(_buffer, keyrings_capabilities, size) != 0 Then Return -EFAULT
1703  If size < buflen && lear_user - Zero a block of memory in user space.*@to: Destination address, in user space.*@n: Number of bytes to zero.* Zero a block of memory in user space.* Return: number of bytes that could not be cleared.* On success, this will be zero. != 0 Then Return -EFAULT
1708  Return size of keyrings_capabilities
Caller
NameDescribe
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs