tools/virtio/linux/ucopysize.h

Source file repositories/reference/linux-study-clean/tools/virtio/linux/ucopysize.h

File Facts

System
Linux kernel
Corpus path
tools/virtio/linux/ucopysize.h
Extension
.h
Size
451 bytes
Lines
22
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __LINUX_UCOPYSIZE_H__
#define __LINUX_UCOPYSIZE_H__

#include <linux/bug.h>

static inline void check_object_size(const void *ptr, unsigned long n,
				     bool to_user)
{ }

static inline void copy_overflow(int size, unsigned long count)
{
}

static __always_inline __must_check bool
check_copy_size(const void *addr, size_t bytes, bool is_source)
{
	return true;
}

#endif /* __LINUX_UCOPYSIZE_H__ */

Annotation

Implementation Notes