Home
last modified time | relevance | path

Searched refs:shared_data (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/Documentation/translations/zh_CN/process/
Dvolatile-considered-harmful.rst40 do_something_on(&shared_data);
41 do_something_else_with(&shared_data);
44 如果所有的代码都遵循加锁规则,当持有the_lock的时候,不可能意外的改变shared_data
47 它知道在shared_data里面将有什么,但是因为spin_lock()调用跟内存屏障一样,会强制编
50 如果shared_data被声名为volatile,锁操作将仍然是必须的。就算我们知道没有其他人正在
51 使用它,编译器也将被阻止优化对临界区内shared_data的访问。在锁有效的同时,
52 shared_data不是volatile的。在处理共享数据的时候,适当的锁操作可以不再需要
/Linux-v5.10/Documentation/process/
Dvolatile-considered-harmful.rst31 do_something_on(&shared_data);
32 do_something_else_with(&shared_data);
35 If all the code follows the locking rules, the value of shared_data cannot
40 compiler might think it knows what will be in shared_data, but the
45 If shared_data were declared volatile, the locking would still be
47 to shared_data _within_ the critical section, when we know that nobody else
48 can be working with it. While the lock is held, shared_data is not
/Linux-v5.10/drivers/block/
Dxen-blkfront.c644 void *shared_data; in blkif_setup_rw_req_grant() local
646 shared_data = kmap_atomic(gnt_list_entry->page); in blkif_setup_rw_req_grant()
656 memcpy(shared_data + offset, in blkif_setup_rw_req_grant()
660 kunmap_atomic(shared_data); in blkif_setup_rw_req_grant()
1382 char *shared_data; in blkif_copy_from_grant() local
1386 shared_data = kmap_atomic(s->grants_used[info->grant_idx]->page); in blkif_copy_from_grant()
1389 shared_data + offset, len); in blkif_copy_from_grant()
1394 kunmap_atomic(shared_data); in blkif_copy_from_grant()
/Linux-v5.10/Documentation/translations/it_IT/process/
Dvolatile-considered-harmful.rst38 do_something_on(&shared_data);
39 do_something_else_with(&shared_data);
/Linux-v5.10/drivers/scsi/aic7xxx/
Daic7xxx.h416 } shared_data; member
Daic79xx.h449 } shared_data; member
Daic7xxx_core.c588 q_hscb->shared_data.cdb_ptr = in ahc_swap_with_next_hscb()
1042 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
1043 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
1074 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
2092 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2093 printk("%#02x", hscb->shared_data.cdb[i]);
6628 spkt = &hscb->shared_data.status; in ahc_calc_residual()
Daic79xx_core.c446 scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = in ahd_setup_scb_common()
3580 for (i = 0; i < sizeof(hscb->shared_data.idata.cdb); i++)
3581 printk("%#02x", hscb->shared_data.idata.cdb[i]);
7342 shared_data.idata.cdb)); in ahd_chip_init()
8870 ahd_set_scsi_status(scb, hscb->shared_data.istatus.scsi_status); in ahd_handle_scsi_status()
8871 switch (hscb->shared_data.istatus.scsi_status) { in ahd_handle_scsi_status()
8964 sc = (struct scsi_sense *)hscb->shared_data.idata.cdb; in ahd_handle_scsi_status()
9036 if (scb->hscb->shared_data.istatus.scsi_status != 0) { in ahd_handle_scb_status()
9089 spkt = &hscb->shared_data.istatus; in ahd_calc_residual()
Daic7xxx_osm.c1492 memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); in ahc_linux_run_command()
Daic79xx_osm.c1613 memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); in ahd_linux_run_command()
/Linux-v5.10/drivers/net/wireless/intel/iwlegacy/
D3945.c2201 struct il3945_shared *shared_data = il->_3945.shared_virt; in il3945_hw_tx_queue_init() local
2203 shared_data->tx_base_ptr[txq_id] = cpu_to_le32((u32) txq->q.dma_addr); in il3945_hw_tx_queue_init()