• Home
  • Raw
  • Download

Lines Matching refs:size

84 static struct rawdata_f_data *rawdata_f_data_alloc(size_t size)  in rawdata_f_data_alloc()  argument
88 if (size > SIZE_MAX - sizeof(*ret)) in rawdata_f_data_alloc()
91 ret = kvzalloc(sizeof(*ret) + size, GFP_KERNEL); in rawdata_f_data_alloc()
402 data->size = copy_size; in aa_simple_write_to_buffer()
411 static ssize_t policy_update(u32 mask, const char __user *buf, size_t size, in policy_update() argument
427 data = aa_simple_write_to_buffer(buf, size, size, pos); in policy_update()
440 static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, in profile_load() argument
444 int error = policy_update(AA_MAY_LOAD_POLICY, buf, size, pos, ns); in profile_load()
458 size_t size, loff_t *pos) in profile_replace() argument
462 buf, size, pos, ns); in profile_replace()
475 size_t size, loff_t *pos) in profile_remove() argument
494 data = aa_simple_write_to_buffer(buf, size + 1, size, pos); in profile_remove()
498 data->data[size] = 0; in profile_remove()
499 error = aa_remove_profiles(ns, label, data->data, size); in profile_remove()
532 size_t size, loff_t *ppos) in ns_revision_read() argument
553 if (*ppos + size > avail) { in ns_revision_read()
559 return simple_read_from_buffer(buf, size, ppos, buffer, avail); in ns_revision_read()
708 if (out + sizeof(outle32) + data->size > buf + in query_data()
713 outle32 = __cpu_to_le32(data->size); in query_data()
716 memcpy(out, data->data, data->size); in query_data()
717 out += data->size; in query_data()
810 ssize_t size; member
849 new->size = n; in multi_transaction_set()
859 size_t size) in multi_transaction_new() argument
863 if (size > MULTI_TRANSACTION_LIMIT - 1) in multi_transaction_new()
870 if (copy_from_user(t->data, buf, size)) { in multi_transaction_new()
879 size_t size, loff_t *pos) in multi_transaction_read() argument
890 ret = simple_read_from_buffer(buf, size, pos, t->data, t->size); in multi_transaction_read()
1109 unsigned int i, size = aa_hash_size(); in seq_profile_hash_show() local
1112 for (i = 0; i < size; i++) in seq_profile_hash_show()
1151 seq_printf(seq, "%s\n", label->size > 1 ? "yes" : "no"); in seq_ns_stacked_show()
1166 if (label->size > 1) { in seq_ns_nsstacked_show()
1273 unsigned int i, size = aa_hash_size(); in seq_rawdata_hash_show() local
1276 for (i = 0; i < size; i++) in seq_rawdata_hash_show()
1340 static ssize_t rawdata_read(struct file *file, char __user *buf, size_t size, in rawdata_read() argument
1345 return simple_read_from_buffer(buf, size, ppos, in rawdata_read()
1347 private->loaddata->size); in rawdata_read()
1371 private = rawdata_f_data_alloc(loaddata->size); in rawdata_open()
1381 loaddata->size); in rawdata_open()
1485 d_inode(dent)->i_size = rawdata->size; in __aa_fs_create_rawdata()
1579 int size = depth * 6 + strlen(dirname) + strlen(fname) + 11; in gen_symlink_name() local
1581 s = buffer = kmalloc(size, GFP_KERNEL); in gen_symlink_name()
1588 size -= 6; in gen_symlink_name()
1591 error = snprintf(s, size, "raw_data/%s/%s", dirname, fname); in gen_symlink_name()
1592 if (error >= size || error < 0) { in gen_symlink_name()