Searched refs:len (Results 1 - 25 of 62) sorted by path

123

/kernel/
H A Daudit.c815 u32 len; local
1004 len = 0;
1006 err = security_secid_to_secctx(audit_sig_sid, &ctx, &len);
1010 sig_data = kmalloc(sizeof(*sig_data) + len, GFP_KERNEL);
1013 security_release_secctx(ctx, len);
1019 memcpy(sig_data->ctx, ctx, len);
1020 security_release_secctx(ctx, len);
1023 sig_data, sizeof(*sig_data) + len);
1084 * len MUST be signed for nlmsg_next to be able to dec it below 0
1087 int len; local
1445 int len, avail; local
1510 audit_log_n_hex(struct audit_buffer *ab, const unsigned char *buf, size_t len) argument
1576 audit_string_contains_control(const char *string, size_t len) argument
1600 audit_log_n_untrustedstring(struct audit_buffer *ab, const char *string, size_t len) argument
1786 u32 len; local
1825 unsigned len; local
2016 u32 len; local
[all...]
H A Daudit.h110 int len; /* length of the cmdline field. */ member in struct:audit_proctitle
277 extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op);
H A Daudit_watch.c189 int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) argument
196 if (path[0] != '/' || path[len-1] == '/' ||
H A Dauditfilter.c136 char *audit_unpack_string(void **bufp, size_t *remain, size_t len) argument
140 if (!*bufp || (len == 0) || (len > *remain))
146 if (len > PATH_MAX)
149 str = kmalloc(len + 1, GFP_KERNEL);
153 memcpy(str, *bufp, len);
154 str[len] = 0;
155 *bufp += len;
156 *remain -= len;
576 size_t len local
[all...]
H A Dauditsc.c860 context->proctitle.len = 0;
985 u32 len; local
996 if (security_secid_to_secctx(sid, &ctx, &len)) {
1001 security_release_secctx(ctx, len);
1033 size_t len, len_left, to_send; local
1039 len_left = len = strnlen_user(p, MAX_ARG_STRLEN) - 1;
1047 if (unlikely((len == -1) || len > MAX_ARG_STRLEN - 1)) {
1084 len_left = len;
1086 if (len > max_execve_audit_le
1161 int i, len; local
1218 u32 len; local
1292 audit_proctitle_rtrim(char *proctitle, int len) argument
1310 int len = strlen(msg); local
2258 __audit_sockaddr(int len, void *a) argument
[all...]
H A Dcompat.c604 unsigned len, struct cpumask *new_mask)
608 if (len < cpumask_size())
610 else if (len > cpumask_size())
611 len = cpumask_size();
614 return compat_get_bitmap(k, user_mask_ptr, len * 8);
618 unsigned int, len,
627 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask);
637 COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len,
643 if ((len * BITS_PER_BYTE) < nr_cpu_ids)
645 if (len
603 compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, unsigned len, struct cpumask *new_mask) argument
1160 compat_alloc_user_space(unsigned long len) argument
[all...]
H A Dconfigs.c59 size_t len, loff_t * offset)
61 return simple_read_from_buffer(buf, len, offset,
58 ikconfig_read_current(struct file *file, char __user *buf, size_t len, loff_t * offset) argument
H A Dfork.c425 unsigned long len = vma_pages(mpnt); local
427 if (security_vm_enough_memory_mm(oldmm, len)) /* sic */
429 charge = len;
H A Dfutex.c2714 * @len: length of the list-head, as userspace expects
2717 size_t, len)
2724 if (unlikely(len != sizeof(*head)))
H A Dfutex_compat.c122 compat_size_t, len)
127 if (unlikely(len != sizeof(*head)))
H A Dkallsyms.c94 int len, skipped_first = 0; local
99 len = *data;
106 off += len + 1;
112 while (len) {
115 len--;
169 * for. Every symbol is stored in a [<len>][<len> bytes of data] format,
170 * so we just need to add the len to the current pointer for every
362 int len; local
371 len
[all...]
/kernel/bpf/
H A Dcore.c663 int len)
662 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument
H A Dsyscall.c374 for (i = 0; i < prog->len; i++) {
491 prog->len = attr->insn_cnt;
495 prog->len * sizeof(struct bpf_insn)) != 0)
H A Dverifier.c824 /* bpf_xxx(..., buf, len) call will access 'len' bytes
826 * note: regno == len, regno - 1 == buf
1242 if (w < 0 || w >= env->prog->len) {
1255 if (cur_stack >= env->prog->len)
1278 int insn_cnt = env->prog->len;
1473 int insn_cnt = env->prog->len;
1696 int insn_cnt = env->prog->len;
1783 int insn_cnt = env->prog->len;
1799 for (i = 0; i < env->prog->len;
[all...]
/kernel/debug/
H A Ddebug_core.h67 extern void gdbstub_msg_write(const char *s, int len);
H A Dgdbstub.c197 void gdbstub_msg_write(const char *s, int len) argument
203 if (len == 0)
204 len = strlen(s);
210 while (len > 0) {
214 if ((len << 1) > (BUFMAX - 2))
217 wcount = len;
226 len -= wcount;
775 int len = strlen(remcom_in_buffer + 6); local
777 if ((len % 2) != 0) {
782 remcom_out_buffer, len);
[all...]
/kernel/debug/kdb/
H A Dkdb_bp.c69 unsigned long len; local
72 &len);
77 if (len > 8)
80 bp->bph_length = len;
H A Dkdb_io.c212 int len = strlen(buffer); local
225 if (len > 0) {
226 cp += len;
227 if (*(buffer+len-1) == '\n')
345 len = strlen(p_tmp);
363 *(p_tmp + len) = '\0';
374 strncpy(cp, p_tmp+len, len_tmp-len + 1);
375 len = len_tmp - len;
568 int fnd, len; local
[all...]
H A Dkdb_main.c780 int len; local
799 len = strlen(cp);
800 if (len == 0) {
821 len = strlen(cp);
823 if (*(cp+len-1) == '$') {
825 *(cp+len-1) = '\0';
827 len = strlen(cp);
828 if (!len)
830 if (len >= GREP_LEN) {
1787 int len local
2044 size_t len; local
[all...]
/kernel/events/
H A Dcore.c5304 u64 len; member in struct:perf_mmap_event::__anon24
5512 .len = vma->vm_end - vma->vm_start,
H A Dinternal.h87 const void *buf, unsigned long len) \
92 size = min(handle->size, len); \
96 len -= written; \
108 } while (len && written == size); \
110 return len; \
H A Dring_buffer.c206 const void *buf, unsigned int len)
208 return __output_copy(handle, buf, len);
212 unsigned int len)
214 return __output_skip(handle, NULL, len);
205 perf_output_copy(struct perf_output_handle *handle, const void *buf, unsigned int len) argument
211 perf_output_skip(struct perf_output_handle *handle, unsigned int len) argument
H A Duprobes.c241 static void copy_from_page(struct page *page, unsigned long vaddr, void *dst, int len) argument
244 memcpy(dst, kaddr + (vaddr & ~PAGE_MASK), len);
248 static void copy_to_page(struct page *page, unsigned long vaddr, const void *src, int len) argument
251 memcpy(kaddr + (vaddr & ~PAGE_MASK), src, len);
565 int len, err = -EIO; local
572 len = min_t(int, size, PAGE_SIZE - (offs & ~PAGE_MASK));
573 err = __copy_insn(mapping, filp, insn, len, offs);
577 insn += len;
578 offs += len;
579 size -= len;
1343 arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, void *src, unsigned long len) argument
[all...]
/kernel/gcov/
H A Dfs.c273 size_t len, loff_t *pos)
294 return len;
533 size_t len, loff_t *pos)
550 return len;
554 static ssize_t reset_read(struct file *file, char __user *addr, size_t len, argument
272 gcov_seq_write(struct file *file, const char __user *addr, size_t len, loff_t *pos) argument
532 reset_write(struct file *file, const char __user *addr, size_t len, loff_t *pos) argument
H A Dgcc_4_7.c553 size_t len; local
558 len = ITER_STRIDE;
559 if (iter->pos + len > iter->size)
560 len = iter->size - iter->pos;
562 seq_write(seq, iter->buffer + iter->pos, len);

Completed in 483 milliseconds

123