Home
last modified time | relevance | path

Searched full:new (Results 1 – 25 of 5202) sorted by relevance

12345678910>>...209

/linux/kernel/
H A Dcred.c175 struct cred *new; in cred_alloc_blank() local
177 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank()
178 if (!new) in cred_alloc_blank()
181 atomic_long_set(&new->usage, 1); in cred_alloc_blank()
182 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) in cred_alloc_blank()
185 return new; in cred_alloc_blank()
188 abort_creds(new); in cred_alloc_blank()
193 * prepare_creds - Prepare a new set of credentials for modification
195 * Prepare a new set of task credentials for modification. A task's creds
197 * prepare a new copy, which the caller then modifies and then commits by
[all …]
/linux/fs/nfsd/
H A Dauth.c25 struct cred *new; in nfsd_setuser() local
29 /* discard any old override before preparing the new set */ in nfsd_setuser()
31 new = prepare_creds(); in nfsd_setuser()
32 if (!new) in nfsd_setuser()
35 new->fsuid = cred->cr_uid; in nfsd_setuser()
36 new->fsgid = cred->cr_gid; in nfsd_setuser()
41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
[all …]
/linux/fs/nfs/blocklayout/
H A Dextent_tree.c137 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument
146 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert()
147 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert()
148 be->be_f_offset = new->be_f_offset; in __ext_tree_insert()
150 be->be_v_offset = new->be_v_offset; in __ext_tree_insert()
151 be->be_length += new->be_length; in __ext_tree_insert()
156 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert()
157 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert()
158 be->be_length += new->be_length; in __ext_tree_insert()
168 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert()
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_rmap.c663 * growing the last AG. This extent is new space and so it is not tracked as
720 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
830 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
831 * the insertion position so we can insert a new record in xfs_rmap_unmap()
1014 * When we allocate a new block, the first thing we do is add a reference to
1178 * new record at current cursor position. in xfs_rmap_map()
1241 #define NEW r[3] macro
1258 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1413 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1461 NEW = LEFT; in xfs_rmap_convert()
[all …]
/linux/security/
H A Dcommoncap.c262 * @new: The proposed new credentials; alterations should be made here
264 * @effective: A pointer to the proposed new effective capabilities set
265 * @inheritable: A pointer to the proposed new inheritable capabilities set
266 * @permitted: A pointer to the proposed new permitted capabilities set
269 * process's capability sets. The changes are made to the proposed new
272 int cap_capset(struct cred *new, in cap_capset()
288 /* no new pI capabilities outside bounding set */ in cap_capset()
291 /* verify restrictions on target's new Permitted set */ in cap_capset()
299 new in cap_capset()
271 cap_capset(struct cred * new,const struct cred * old,const kernel_cap_t * effective,const kernel_cap_t * inheritable,const kernel_cap_t * permitted) cap_capset() argument
620 struct cred *new = bprm->cred; bprm_caps_from_vfs_caps() local
821 struct cred *new = bprm->cred; handle_privileged_root() local
858 __is_setuid(struct cred * new,const struct cred * old) __is_setuid() argument
861 __is_setgid(struct cred * new,const struct cred * old) __is_setgid() argument
881 nonroot_raised_pE(struct cred * new,const struct cred * old,kuid_t root,bool has_fcap) nonroot_raised_pE() argument
918 struct cred *new = bprm->cred; cap_bprm_creds_from_file() local
1113 cap_emulate_setxuid(struct cred * new,const struct cred * old) cap_emulate_setxuid() argument
1152 cap_task_fix_setuid(struct cred * new,const struct cred * old,int flags) cap_task_fix_setuid() argument
1265 struct cred *new; cap_prctl_drop() local
1298 struct cred *new; cap_task_prctl() local
[all...]
/linux/security/ipe/
H A Dpolicy.c76 * ipe_update_policy() - parse a new policy and replace old with it.
96 struct ipe_policy *old, *ap, *new = NULL; in ipe_update_policy() local
103 new = ipe_new_policy(text, textlen, pkcs7, pkcs7len); in ipe_update_policy()
104 if (IS_ERR(new)) in ipe_update_policy()
105 return PTR_ERR(new); in ipe_update_policy()
107 if (strcmp(new->parsed->name, old->parsed->name)) { in ipe_update_policy()
112 if (ver_to_u64(old) >= ver_to_u64(new)) { in ipe_update_policy()
117 root->i_private = new; in ipe_update_policy()
118 swap(new->policyfs, old->policyfs); in ipe_update_policy()
119 ipe_audit_policy_load(new); in ipe_update_policy()
[all …]
/linux/security/keys/
H A Dprocess_keys.c221 int install_thread_keyring_to_cred(struct cred *new) in install_thread_keyring_to_cred() argument
225 if (new->thread_keyring) in install_thread_keyring_to_cred()
228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred()
235 new->thread_keyring = keyring; in install_thread_keyring_to_cred()
246 struct cred *new; in install_thread_keyring() local
249 new = prepare_creds(); in install_thread_keyring()
250 if (!new) in install_thread_keyring()
253 ret = install_thread_keyring_to_cred(new); in install_thread_keyring()
255 abort_creds(new); in install_thread_keyring()
259 return commit_creds(new); in install_thread_keyring()
[all …]
/linux/arch/sparc/kernel/
H A Dftrace.c26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument
32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code()
47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
50 if (replaced != old && replaced != new) in ftrace_modify_code()
59 u32 old, new; in ftrace_make_nop() local
62 new = ftrace_nop; in ftrace_make_nop()
63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
69 u32 old, new; in ftrace_make_call() local
72 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
73 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
[all …]
/linux/drivers/mtd/
H A Dmtd_blkdevs.c276 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() argument
278 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev()
288 if (new->devnum == -1) { in add_mtd_blktrans_dev()
292 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
293 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
296 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
299 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
301 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
308 if (new->devnum == -1) in add_mtd_blktrans_dev()
309 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
[all …]
/linux/arch/powerpc/include/asm/
H A Dcmpxchg.h42 u32 __cmpxchg_##type##sfx(volatile void *p, u32 old, u32 new) \
50 new <<= bitoff; \
67 : "r" (p), "r" (old), "r" (new), "r" (prev_mask) \
269 * Compare and exchange - if *p == old, set it to new,
283 __cmpxchg_u8(volatile unsigned char *p, unsigned long old, unsigned long new) in __cmpxchg_u8() argument
298 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8()
306 unsigned long new) in __cmpxchg_u8_local() argument
318 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_local()
325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigned long new) in __cmpxchg_u8_relaxed() argument
337 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_relaxed()
[all …]
/linux/arch/arm64/kvm/hyp/
H A Dexception.c76 * and PSTATE into ELR and SPSR respectively, and compute the new PC/PSTATE.
94 unsigned long sctlr, vbar, old, new, mode; in enter_exception64() local
127 new = 0; in enter_exception64()
129 new |= (old & PSR_N_BIT); in enter_exception64()
130 new |= (old & PSR_Z_BIT); in enter_exception64()
131 new |= (old & PSR_C_BIT); in enter_exception64()
132 new |= (old & PSR_V_BIT); in enter_exception64()
135 new |= PSR_TCO_BIT; in enter_exception64()
137 new |= (old & PSR_DIT_BIT); in enter_exception64()
145 new |= (old & PSR_PAN_BIT); in enter_exception64()
[all …]
/linux/scripts/dtc/
H A Dlivetree.c15 struct label *new; in add_label() local
18 for_each_label_withdel(*labels, new) in add_label()
19 if (streq(new->label, label)) { in add_label()
20 new->deleted = 0; in add_label()
24 new = xmalloc(sizeof(*new)); in add_label()
25 memset(new, 0, sizeof(*new)); in add_label()
26 new->label = label; in add_label()
27 new->next = *labels; in add_label()
28 *labels = new; in add_label()
42 struct property *new = xmalloc(sizeof(*new)); in build_property() local
[all …]
/linux/scripts/include/
H A Dlist.h58 * Insert a new entry between two known consecutive entries.
63 static inline void __list_add(struct list_head *new, in __list_add() argument
67 next->prev = new; in __list_add()
68 new->next = next; in __list_add()
69 new->prev = prev; in __list_add()
70 prev->next = new; in __list_add()
74 * list_add - add a new entry
75 * @new: new entry to be added
78 * Insert a new entry after the specified head.
81 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
[all …]
/linux/lib/
H A Derrseq.c19 * can later be used to tell whether any new errors have occurred since that
22 * Note that there is a risk of collisions if new errors are being recorded
26 * been sampled since a new value was recorded. That allows us to avoid bumping
30 * A new errseq_t should always be zeroed out. A errseq_t value of all zeroes
80 errseq_t new; in errseq_set() local
82 /* Clear out error bits and set new error */ in errseq_set()
83 new = (old & ~(ERRNO_MASK | ERRSEQ_SEEN)) | -err; in errseq_set()
87 new += ERRSEQ_CTR_INC; in errseq_set()
90 if (new == old) { in errseq_set()
91 cur = new; in errseq_set()
[all …]
/linux/Documentation/process/
H A Dadding-syscalls.rst4 Adding a New System Call
7 This document describes what's involved in adding a new system call to the
15 The first thing to consider when adding a new system call is whether one of
22 object, it may make more sense to create a new filesystem or device. This
23 also makes it easier to encapsulate the new functionality in a kernel module
26 - If the new functionality involves operations where the kernel notifies
27 userspace that something has happened, then returning a new file
35 - If you're just exposing runtime system information, a new node in sysfs
44 this option is best for when the new function is closely analogous to
45 existing :manpage:`fcntl(2)` functionality, or the new functionality is very simple
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c26 int new; member
39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
53 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
54 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
55 { .opt = TCP_KEEPCNT, .new
90 int old, tmp, new, opt = t->opt; bpf_test_sockopt_flip() local
117 int old, tmp, new, expected, opt; bpf_test_sockopt_int() local
[all...]
/linux/drivers/android/
H A Ddbitmap.h13 * order to allocate memory for the new bitmap. These operations then,
67 /* Replace the internal bitmap with a new one of different size */
69 dbitmap_replace(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_replace() argument
71 bitmap_copy(new, dmap->map, min(dmap->nbits, nbits)); in dbitmap_replace()
73 dmap->map = new; in dbitmap_replace()
78 dbitmap_shrink(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_shrink() argument
80 if (!new) in dbitmap_shrink()
84 * Verify that shrinking to @nbits is still possible. The @new in dbitmap_shrink()
86 * could now be outdated. In this case, free @new and move on. in dbitmap_shrink()
89 kfree(new); in dbitmap_shrink()
[all …]
/linux/crypto/asymmetric_keys/
H A Drestrict.c57 * @payload: The payload of the new key.
58 * @trust_keyring: A ring of keys that can be used to vouch for the new cert.
60 * Check the new certificate against the ones in the trust keyring. If one of
61 * those is the signing key and validates the new certificate, then mark the
62 * new certificate as being trusted.
64 * Returns 0 if the new certificate was accepted, -ENOKEY if we couldn't find a
119 * @payload: The payload of the new key.
122 * Check if the new certificate is a CA. If it is a CA, then mark the new
125 * Returns 0 if the new certificate was accepted, -ENOKEY if the
159 * @payload: The payload of the new key.
[all …]
/linux/fs/
H A Danon_inodes.c111 * Return: Pointer to new inode on success, ERR_PTR on failure.
185 * anon_inode_getfile - creates a new file instance by hooking it up to an
189 * @name: [in] name of the "class" of the new file
190 * @fops: [in] file operations for the new file
191 * @priv: [in] private data for the new file (will be file's private_data)
194 * Creates a new file by hooking it on a single inode. This is useful for files
209 * anon_inode_getfile_fmode - creates a new file instance by hooking it up to an
213 * @name: [in] name of the "class" of the new file
214 * @fops: [in] file operations for the new file
215 * @priv: [in] private data for the new file (will be file's private_data)
[all …]
/linux/net/smc/
H A Dsmc_cdc.h146 /* calculate cursor difference between old and new, where old <= new and
151 union smc_host_cursor *new) in smc_curs_diff() argument
153 if (old->wrap != new->wrap) in smc_curs_diff()
155 ((size - old->count) + new->count)); in smc_curs_diff()
157 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff()
160 /* calculate cursor difference between old and new - returns negative
161 * value in case old > new
165 union smc_host_cursor *new) in smc_curs_comp() argument
167 if (old->wrap > new->wrap || in smc_curs_comp()
168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp()
[all …]
/linux/fs/jfs/
H A Dresize.c39 * new LVSize: in LV blocks (required)
40 * new LogSize: in LV blocks (optional)
41 * new FSSize: in LV blocks (optional)
43 * new configuration:
44 * 1. set new LogSize as specified or default from new LVSize;
45 * 2. compute new FSCKSize from new LVSize;
46 * 3. set new FSSize as MIN(FSSize, LVSize-(LogSize+FSCKSize)) where
47 * assert(new FSSize >= old FSSize),
119 * validate new size, or, if not specified, determine new size in jfs_extendfs()
168 * compute new file system space; in jfs_extendfs()
[all …]
/linux/security/apparmor/
H A Dtask.c11 * cred or task context but instead creates a new one. Ideally the task
42 * @label: new label (NOT NULL)
50 struct cred *new; in aa_replace_current_label() local
60 new = prepare_creds(); in aa_replace_current_label()
61 if (!new) in aa_replace_current_label()
84 aa_put_label(cred_label(new)); in aa_replace_current_label()
85 set_cred_label(new, label); in aa_replace_current_label()
87 commit_creds(new); in aa_replace_current_label()
120 struct cred *new; in aa_set_current_hat() local
122 new = prepare_creds(); in aa_set_current_hat()
[all …]
/linux/arch/x86/platform/efi/
H A Dmemmap.c85 * efi_memmap_install - Install a new EFI memory map in efi.memmap
90 * mapping function and installs the new memmap.
156 * @buf: Address of buffer to store new map
168 void *old, *new; in efi_memmap_insert() local
186 for (old = old_memmap->map, new = buf; in efi_memmap_insert()
188 old += old_memmap->desc_size, new += old_memmap->desc_size) { in efi_memmap_insert()
191 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert()
192 md = new; in efi_memmap_insert()
206 new += old_memmap->desc_size; in efi_memmap_insert()
207 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert()
[all …]
/linux/arch/sparc/include/asm/
H A Dcmpxchg_64.h11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument
14 : "=&r" (new) in __cmpxchg_u32()
15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32()
18 return new; in __cmpxchg_u32()
107 * store NEW in MEM. Return the initial value in MEM. Success is
115 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument
118 : "=&r" (new) in __cmpxchg_u64()
119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64()
122 return new; in __cmpxchg_u64()
131 __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) in __cmpxchg_u8() argument
[all …]
/linux/sound/pci/ice1712/
H A Dwtm.c67 unsigned char new, old; in stac9460_dac_mute_all() local
78 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
79 change = (new != old); in stac9460_dac_mute_all()
81 stac9460_put(ice, idx, new); in stac9460_dac_mute_all()
97 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
98 change = (new != old); in stac9460_dac_mute_all()
100 stac9460_2_put(ice, idx, new); in stac9460_dac_mute_all()
144 unsigned char new, old; in stac9460_dac_mute_put() local
151 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
153 change = (new != old); in stac9460_dac_mute_put()
[all …]

12345678910>>...209