Home
last modified time | relevance | path

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

12345678910>>...44

/linux/tools/testing/selftests/drivers/dma-buf/
H A Dudmabuf.c135 struct udmabuf_create create; in main() local
170 memset(&create, 0, sizeof(create)); in main()
173 create.memfd = memfd; in main()
174 create.offset = getpagesize()/2; in main()
175 create.size = getpagesize(); in main()
176 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main()
183 create.memfd = memfd; in main()
184 create.offset = 0; in main()
185 create.size = getpagesize()/2; in main()
186 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main()
[all …]
/linux/fs/ocfs2/dlm/
H A Ddlmlock.c287 struct dlm_create_lock create; in dlm_send_remote_lock_request() local
291 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
292 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
293 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
294 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
295 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
296 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
297 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
299 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
300 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
[all …]
/linux/kernel/
H A Dkthread.c345 struct kthread_create_info *create = _create; in kthread() local
346 int (*threadfn)(void *data) = create->threadfn; in kthread()
347 void *data = create->data; in kthread()
355 done = xchg(&create->done, NULL); in kthread()
357 kfree(create->full_name); in kthread()
358 kfree(create); in kthread()
362 self->full_name = create->full_name; in kthread()
375 create->result = current; in kthread()
404 static void create_kthread(struct kthread_create_info *create) in create_kthread() argument
409 current->pref_node_fork = create->node; in create_kthread()
[all …]
/linux/samples/uhid/
H A 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()
/linux/Documentation/admin-guide/sysctl/
H A 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.
/linux/include/net/
H A 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()
/linux/fs/bfs/
H A Dfile.c66 struct buffer_head *bh_result, int create) in bfs_get_block() argument
75 if (!create) { in bfs_get_block()
78 create, (unsigned long)block, phys); in bfs_get_block()
90 create, (unsigned long)block, phys); in bfs_get_block()
109 create, (unsigned long)block, phys); in bfs_get_block()
137 create, (unsigned long)block, phys); in bfs_get_block()
/linux/Documentation/sound/designs/
H A 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
/linux/tools/lib/perf/Documentation/
H A 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");
H A 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:
/linux/Documentation/admin-guide/device-mapper/
H A 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'
H A 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
H A 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`;
H A Ddelay.rst37 dmsetup create delayed --table "0 `blockdev --getsz $1` delay $1 0 500"
46 dmsetup create delayed --table "0 `blockdev --getsz $1` delay $1 2048 0 $2 4096 400"
54 dmsetup create delayed --table "0 `blockdev --getsz $1` delay $1 0 50 $2 0 100 $1 0 333"
/linux/tools/testing/selftests/hid/
H A Dhid_common.h146 strcpy((char *)ev.u.create.name, buf); in uhid_create()
147 ev.u.create.rd_data = rdesc; in uhid_create()
148 ev.u.create.rd_size = rdesc_size; in uhid_create()
149 ev.u.create.bus = bus; in uhid_create()
150 ev.u.create.vendor = vid; in uhid_create()
151 ev.u.create.product = pid; in uhid_create()
152 ev.u.create.version = 0; in uhid_create()
153 ev.u.create.country = 0; in uhid_create()
156 strcpy((char *)ev.u.create.phys, buf); in uhid_create()
/linux/drivers/md/
H A Ddm-init.c23 static char *create; variable
278 if (!create) in dm_init_init()
281 if (strlen(create) >= DM_MAX_STR_SIZE) { in dm_init_init()
285 str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL); in dm_init_init()
322 module_param(create, charp, 0);
323 MODULE_PARM_DESC(create, "Create a mapped device in early boot");
/linux/net/bridge/
H A Dbr_cfm.c25 if (mep->create.ifindex == ifindex) in br_mep_find_ifindex()
499 struct br_cfm_mep_create *const create, in br_cfm_mep_create() argument
507 if (create->domain == BR_CFM_VLAN) { in br_cfm_mep_create()
512 if (create->domain != BR_CFM_PORT) { in br_cfm_mep_create()
517 if (create->direction == BR_CFM_MEP_DIRECTION_UP) { in br_cfm_mep_create()
522 if (create->direction != BR_CFM_MEP_DIRECTION_DOWN) { in br_cfm_mep_create()
527 p = br_mep_get_port(br, create->ifindex); in br_cfm_mep_create()
541 if (create->domain == BR_CFM_PORT) { in br_cfm_mep_create()
542 mep = br_mep_find_ifindex(br, create->ifindex); in br_cfm_mep_create()
554 mep->create = *create; in br_cfm_mep_create()
[all …]
H A Dbr_cfm_netlink.c94 struct br_cfm_mep_create create; in br_mep_create_parse() local
120 memset(&create, 0, sizeof(create)); in br_mep_create_parse()
123 create.domain = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN]); in br_mep_create_parse()
124 create.direction = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION]); in br_mep_create_parse()
125 create.ifindex = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_IFINDEX]); in br_mep_create_parse()
127 return br_cfm_mep_create(br, instance, &create, extack); in br_mep_create_parse()
471 mep->create.domain)) in br_cfm_config_fill_info()
475 mep->create.direction)) in br_cfm_config_fill_info()
479 mep->create.ifindex)) in br_cfm_config_fill_info()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A 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 …]
/linux/drivers/gpu/drm/qxl/
H A Dqxl_cmd.c379 struct qxl_surface_create *create; in qxl_io_create_primary() local
385 create = &qdev->ram_header->create_surface; in qxl_io_create_primary()
386 create->format = bo->surf.format; in qxl_io_create_primary()
387 create->width = bo->surf.width; in qxl_io_create_primary()
388 create->height = bo->surf.height; in qxl_io_create_primary()
389 create->stride = bo->surf.stride; in qxl_io_create_primary()
390 create->mem = qxl_bo_physical_address(qdev, bo, 0); in qxl_io_create_primary()
392 DRM_DEBUG_DRIVER("mem = %llx, from %p\n", create->mem, bo->kptr); in qxl_io_create_primary()
394 create->flags = QXL_SURF_FLAG_KEEP_DATA; in qxl_io_create_primary()
395 create->type = QXL_SURF_TYPE_PRIMARY; in qxl_io_create_primary()
/linux/Documentation/input/
H A 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
/linux/fs/orangefs/
H A Dnamei.c39 new_op->upcall.req.create.parent_refn = parent->refn; in orangefs_create()
41 fill_default_sys_attrs(new_op->upcall.req.create.attributes, in orangefs_create()
44 strscpy(new_op->upcall.req.create.d_name, dentry->d_name.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()
425 .create = orangefs_create,
/linux/fs/nfs/
H A Dnfs3proc.c288 struct nfs3_createargs create; member
353 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create()
354 data->arg.create.name = dentry->d_name.name; in nfs3_proc_create()
355 data->arg.create.len = dentry->d_name.len; in nfs3_proc_create()
356 data->arg.create.sattr = sattr; in nfs3_proc_create()
358 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; in nfs3_proc_create()
360 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE; in nfs3_proc_create()
361 data->arg.create.verifier[0] = cpu_to_be32(jiffies); in nfs3_proc_create()
362 data->arg.create.verifier[1] = cpu_to_be32(current->pid); in nfs3_proc_create()
377 switch (data->arg.create.createmode) { in nfs3_proc_create()
[all …]
/linux/drivers/hid/
H A Duhid.c451 memcpy(event->u.create.name, compat->name, in uhid_event_from_user()
453 memcpy(event->u.create.phys, compat->phys, in uhid_event_from_user()
455 memcpy(event->u.create.uniq, compat->uniq, in uhid_event_from_user()
458 event->u.create.rd_data = compat_ptr(compat->rd_data); in uhid_event_from_user()
459 event->u.create.rd_size = compat->rd_size; in uhid_event_from_user()
461 event->u.create.bus = compat->bus; in uhid_event_from_user()
462 event->u.create.vendor = compat->vendor; in uhid_event_from_user()
463 event->u.create.product = compat->product; in uhid_event_from_user()
464 event->u.create.version = compat->version; in uhid_event_from_user()
465 event->u.create.country = compat->country; in uhid_event_from_user()
[all …]
/linux/fs/efs/
H A Dfile.c14 struct buffer_head *bh_result, int create) in efs_get_block() argument
19 if (create) in efs_get_block()

12345678910>>...44