Home
last modified time | relevance | path

Searched refs:create (Results 1 – 25 of 1104) sorted by relevance

12345678910>>...45

/kernel/linux/linux-5.10/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c25 struct udmabuf_create create; in main() local
56 memset(&create, 0, sizeof(create)); in main()
59 create.memfd = memfd; in main()
60 create.offset = getpagesize()/2; in main()
61 create.size = getpagesize(); in main()
62 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main()
69 create.memfd = memfd; in main()
70 create.offset = 0; in main()
71 create.size = getpagesize()/2; in main()
72 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/dlm/
Ddlmlock.c289 struct dlm_create_lock create; in dlm_send_remote_lock_request() local
293 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
294 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
295 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
296 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
297 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
298 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
299 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
301 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
302 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
[all …]
/kernel/linux/linux-5.10/kernel/
Dkthread.c268 struct kthread_create_info *create = _create; in kthread() local
269 int (*threadfn)(void *data) = create->threadfn; in kthread()
270 void *data = create->data; in kthread()
279 done = xchg(&create->done, NULL); in kthread()
281 kfree(create); in kthread()
286 create->result = ERR_PTR(-ENOMEM); in kthread()
299 create->result = current; in kthread()
328 static void create_kthread(struct kthread_create_info *create) in create_kthread() argument
333 current->pref_node_fork = create->node; in create_kthread()
336 pid = kernel_thread(kthread, create, CLONE_FS | CLONE_FILES | SIGCHLD); in create_kthread()
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/sysctl/
Duser.rst19 malfunction and attempt to create a ridiculous number of objects,
42 user namespace may create.
48 user namespace may create.
54 user namespace may create.
60 current user namespace may create.
66 user namespace may create.
72 user namespace may create.
78 user namespace may create.
84 user namespace may create.
/kernel/linux/linux-5.10/samples/uhid/
Duhid-example.c176 static int create(int fd) in create() function
182 strcpy((char*)ev.u.create.name, "test-uhid-device"); in create()
183 ev.u.create.rd_data = rdesc; in create()
184 ev.u.create.rd_size = sizeof(rdesc); in create()
185 ev.u.create.bus = BUS_USB; in create()
186 ev.u.create.vendor = 0x15d9; in create()
187 ev.u.create.product = 0x0a37; in create()
188 ev.u.create.version = 0; in create()
189 ev.u.create.country = 0; in create()
423 ret = create(fd); in main()
/kernel/linux/linux-5.10/include/net/
Dinetpeer.h100 int create);
104 int vif, int create) in inet_getpeer_v4() argument
111 return inet_getpeer(base, &daddr, create); in inet_getpeer_v4()
116 int create) in inet_getpeer_v6() argument
122 return inet_getpeer(base, &daddr, create); in inet_getpeer_v6()
/kernel/linux/linux-5.10/fs/bfs/
Dfile.c65 struct buffer_head *bh_result, int create) in bfs_get_block() argument
74 if (!create) { in bfs_get_block()
77 create, (unsigned long)block, phys); in bfs_get_block()
89 create, (unsigned long)block, phys); in bfs_get_block()
108 create, (unsigned long)block, phys); in bfs_get_block()
136 create, (unsigned long)block, phys); in bfs_get_block()
/kernel/linux/linux-5.10/Documentation/sound/designs/
Djack-controls.rst26 Each jack will have a kcontrol list, so that we can create a kcontrol
39 if true, create a kcontrol and add it to the jack list.
41 Don't create a input device for phantom jacks.
43 HDA jacks can set phantom_jack to true in order to create a phantom
44 jack and set initial_kctl to true to create an initial kcontrol with
/kernel/linux/linux-5.10/drivers/md/
Ddm-init.c22 static char *create; variable
271 if (!create) in dm_init_init()
274 if (strlen(create) >= DM_MAX_STR_SIZE) { in dm_init_init()
278 str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL); in dm_init_init()
302 module_param(create, charp, 0);
303 MODULE_PARM_DESC(create, "Create a mapped device in early boot");
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/
Dlibperf-counting.txt75 We create software events for cpu and task:
97 In this case we will monitor current process, so we create threads map with single pid (0):
103 39 fprintf(stderr, "failed to create threads\n");
110 Now we create libperf's event list, which will serve as holder for the events we want:
116 47 fprintf(stderr, "failed to create evlist\n");
121 We create libperf's events for the attributes we defined earlier and add them to the list:
127 53 fprintf(stderr, "failed to create evsel1\n");
135 61 fprintf(stderr, "failed to create evsel2\n");
Dlibperf-sampling.txt102 44 fprintf(stderr, "failed to create cpus\n");
107 Now we create libperf's event list, which will serve as holder for the cycles event:
113 50 fprintf(stderr, "failed to create evlist\n");
118 We create libperf's event for the cycles attribute we defined earlier and add it to the list:
124 56 fprintf(stderr, "failed to create cycles\n");
144 Once the events list is open, we can create memory maps AKA perf ring buffers:
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Dunstriped.rst61 echo $DM_PARMS | dmsetup create raid0
63 echo "0 1 unstriped ${NUM} ${CHUNK} ${i} /dev/mapper/raid0 0" | dmsetup create set-${i}
118 dmsetup create nvmset0 --table '0 512 unstriped 2 256 0 /dev/nvme0n1 0'
119 dmsetup create nvmset1 --table '0 512 unstriped 2 256 1 /dev/nvme0n1 0'
132 dmsetup create raid_disk0 --table '0 512 unstriped 4 256 0 /dev/mapper/striped 0'
133 dmsetup create raid_disk1 --table '0 512 unstriped 4 256 1 /dev/mapper/striped 0'
134 dmsetup create raid_disk2 --table '0 512 unstriped 4 256 2 /dev/mapper/striped 0'
135 dmsetup create raid_disk3 --table '0 512 unstriped 4 256 3 /dev/mapper/striped 0'
Dzero.rst20 To create a sparse device, start by creating a dm-zero device that's the
25 echo "0 $TEN_TERABYTES zero" | dmsetup create zero1
27 Then create a snapshot of the zero device, using any available block-device as
33 dmsetup create sparse1
35 This will create a 10TB sparse device called /dev/mapper/sparse1 that has
Dlinear.rst24 echo "0 `blockdev --getsz $1` linear $1 0" | dmsetup create identity
33 $size1 $size2 linear $2 0" | dmsetup create joined
63 `echo \"$table\" | dmsetup create $name`;
Ddm-init.rst11 The second is to create one or more device-mappers using the module parameter
12 "dm-mod.create=" through the kernel boot command line argument.
23 …dm-mod.create=<name>,<uuid>,<minor>,<flags>,<table>[,<table>+][;<name>,<uuid>,<minor>,<flags>,<tab…
73 dm-mod.create="lroot,,,rw, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" root=/dev/dm-0
79 An example of multiple device-mappers, with the dm-mod.create="..." contents
/kernel/linux/linux-5.10/drivers/lightnvm/
Dcore.c305 static int nvm_create_tgt(struct nvm_dev *dev, struct nvm_ioctl_create *create) in nvm_create_tgt() argument
317 switch (create->conf.type) { in nvm_create_tgt()
319 ret = __nvm_config_simple(dev, &create->conf.s); in nvm_create_tgt()
323 e.lun_begin = create->conf.s.lun_begin; in nvm_create_tgt()
324 e.lun_end = create->conf.s.lun_end; in nvm_create_tgt()
328 ret = __nvm_config_extended(dev, &create->conf.e); in nvm_create_tgt()
332 e = create->conf.e; in nvm_create_tgt()
339 tt = nvm_find_target_type(create->tgttype); in nvm_create_tgt()
341 pr_err("target type %s not found\n", create->tgttype); in nvm_create_tgt()
350 if (nvm_target_exists(create->tgtname)) { in nvm_create_tgt()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dmsgbuf.c587 struct msgbuf_tx_flowring_create_req *create; in brcmf_msgbuf_flowring_create_worker() local
621 create = (struct msgbuf_tx_flowring_create_req *)ret_ptr; in brcmf_msgbuf_flowring_create_worker()
622 create->msg.msgtype = MSGBUF_TYPE_FLOW_RING_CREATE; in brcmf_msgbuf_flowring_create_worker()
623 create->msg.ifidx = work->ifidx; in brcmf_msgbuf_flowring_create_worker()
624 create->msg.request_id = 0; in brcmf_msgbuf_flowring_create_worker()
625 create->tid = brcmf_flowring_tid(msgbuf->flow, flowid); in brcmf_msgbuf_flowring_create_worker()
626 create->flow_ring_id = cpu_to_le16(flowid + in brcmf_msgbuf_flowring_create_worker()
628 memcpy(create->sa, work->sa, ETH_ALEN); in brcmf_msgbuf_flowring_create_worker()
629 memcpy(create->da, work->da, ETH_ALEN); in brcmf_msgbuf_flowring_create_worker()
631 create->flow_ring_addr.high_addr = cpu_to_le32(address >> 32); in brcmf_msgbuf_flowring_create_worker()
[all …]
/kernel/linux/linux-5.10/drivers/dma-buf/
Dudmabuf.c260 struct udmabuf_create create; in udmabuf_ioctl_create() local
264 if (copy_from_user(&create, (void __user *)arg, in udmabuf_ioctl_create()
265 sizeof(create))) in udmabuf_ioctl_create()
268 head.flags = create.flags; in udmabuf_ioctl_create()
270 list.memfd = create.memfd; in udmabuf_ioctl_create()
271 list.offset = create.offset; in udmabuf_ioctl_create()
272 list.size = create.size; in udmabuf_ioctl_create()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_cmd.c386 struct qxl_surface_create *create; in qxl_io_create_primary() local
392 create = &qdev->ram_header->create_surface; in qxl_io_create_primary()
393 create->format = bo->surf.format; in qxl_io_create_primary()
394 create->width = bo->surf.width; in qxl_io_create_primary()
395 create->height = bo->surf.height; in qxl_io_create_primary()
396 create->stride = bo->surf.stride; in qxl_io_create_primary()
397 create->mem = qxl_bo_physical_address(qdev, bo, 0); in qxl_io_create_primary()
399 DRM_DEBUG_DRIVER("mem = %llx, from %p\n", create->mem, bo->kptr); in qxl_io_create_primary()
401 create->flags = QXL_SURF_FLAG_KEEP_DATA; in qxl_io_create_primary()
402 create->type = QXL_SURF_TYPE_PRIMARY; in qxl_io_create_primary()
/kernel/linux/linux-5.10/Documentation/input/
Duinput.rst10 process can create a virtual input device with specific capabilities. Once
21 The uinput header defines ioctls to create, set up, and destroy virtual
28 create uinput devices and send events. libevdev is less error-prone than
40 This first example shows how to create a new virtual device, and how to
86 * On UI_DEV_CREATE the kernel will create the device node for this
115 This example shows how to create a virtual device that behaves like a physical
149 * On UI_DEV_CREATE the kernel will create the device node for this
220 * On UI_DEV_CREATE the kernel will create the device node for this
/kernel/linux/linux-5.10/fs/efs/
Dfile.c14 struct buffer_head *bh_result, int create) in efs_get_block() argument
19 if (create) in efs_get_block()
/kernel/linux/linux-5.10/fs/orangefs/
Dnamei.c38 new_op->upcall.req.create.parent_refn = parent->refn; in orangefs_create()
40 fill_default_sys_attrs(new_op->upcall.req.create.attributes, in orangefs_create()
43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
52 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
53 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
60 ref = new_op->downcall.resp.create.refn; in orangefs_create()
431 .create = orangefs_create,
/kernel/linux/linux-5.10/fs/nfs/
Dnfs3proc.c264 struct nfs3_createargs create; member
329 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create()
330 data->arg.create.name = dentry->d_name.name; in nfs3_proc_create()
331 data->arg.create.len = dentry->d_name.len; in nfs3_proc_create()
332 data->arg.create.sattr = sattr; in nfs3_proc_create()
334 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; in nfs3_proc_create()
336 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE; in nfs3_proc_create()
337 data->arg.create.verifier[0] = cpu_to_be32(jiffies); in nfs3_proc_create()
338 data->arg.create.verifier[1] = cpu_to_be32(current->pid); in nfs3_proc_create()
353 switch (data->arg.create.createmode) { in nfs3_proc_create()
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4proc.c609 struct nfsd4_create *create = &u->create; in nfsd4_create() local
620 status = check_attr_support(rqstp, cstate, create->cr_bmval, in nfsd4_create()
625 current->fs->umask = create->cr_umask; in nfsd4_create()
626 switch (create->cr_type) { in nfsd4_create()
629 create->cr_name, create->cr_namelen, in nfsd4_create()
630 create->cr_data, &resfh); in nfsd4_create()
635 rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); in nfsd4_create()
636 if (MAJOR(rdev) != create->cr_specdata1 || in nfsd4_create()
637 MINOR(rdev) != create->cr_specdata2) in nfsd4_create()
640 create->cr_name, create->cr_namelen, in nfsd4_create()
[all …]
/kernel/linux/linux-5.10/drivers/staging/unisys/visorhba/
DKconfig12 to visorbus to create a HBA device, the probe function of
13 visorhba is called to create the scsi device.

12345678910>>...45