search for: accesor

Displaying 11 results from an estimated 11 matches for "accesor".

Did you mean: accessor
2020 Apr 01
0
[PATCH v3 0/8] vhost: Reset batched descriptors on SET_VRING_BASE call
...would be to check if mutex is properly get in > vq private_data accessors. Not sure if mutex debug code allow that, > similar to C++ unique lock::owns_lock. Not acquiring in the function > because caller code holds the mutex in order to perform more actions. > > v3: > * Rename accesors functions. > * Make scsi and test use the accesors too. > > v2: > * Squashed commits. > * Create vq private_data accesors (mst). > > This is meant to be applied on top of > c4f1c41a6094582903c75c0dcfacb453c959d457 in > git.kernel.org/pub/scm/linux/kernel/git/mst/vhost....
2004 May 27
3
"privileged slots"
Hi all, in the help for RClassUtils I found the expression "privileged slots" in function "checkSlotAssignment" with the explanation: /privileged slots (those that can only be set by accesor functions defined along with the class itself)/ I thought all slots of a (not private) class can be a accessed by a user via the @ Operator. Is there a way to make a single slot of a class (not the whole class) private, so that you can access this slot only via an accessor function (not via @)...
2006 Jun 07
1
Setter that converts a float attribute to integer
...model, I have a price attribute in the database that stores the value in cents, to avoid future problems with float arithmetic and round. But at the views, I would like to show the price in euros, with decimal for the cents. So I defined a new attribute called price_in_euros, and the corresponding accesors: class Report < ActiveRecord::Base validates_numericality_of :price, :only_integer => true attr_accessor :price_in_euros def price_in_euros if self.price self.price / 100.0 else # default pric...
2020 Apr 01
1
[PATCH v3 0/8] vhost: Reset batched descriptors on SET_VRING_BASE call
...ata accessors. Not sure if mutex debug code allow that, >>> similar to C++ unique lock::owns_lock. Not acquiring in the function >>> because caller code holds the mutex in order to perform more actions. >> >> >> >>> >>> v3: >>> * Rename accesors functions. >>> * Make scsi and test use the accesors too. >>> >>> v2: >>> * Squashed commits. >>> * Create vq private_data accesors (mst). >>> >>> This is meant to be applied on top of >>> c4f1c41a6094582903c75c0dcfacb453c959d...
2006 Jun 07
2
Problem with a setter that converts euros to cents
...model, I have a price attribute in the database that stores the value in cents, to avoid future problems with float arithmetic and round. But at the views, I would like to show the price in euros, with decimal for the cents. So I defined a new attribute called price_in_euros, and the corresponding accesors: class Report < ActiveRecord::Base validates_numericality_of :price, :only_integer => true attr_accessor :price_in_euros def price_in_euros if self.price self.price / 100.0 else # default price is 1 euro 1 end end def price_in_euros=(euros) self.price = (euros * 100...
2020 Apr 13
0
[PATCH 0/8] tools/vhost: Reset virtqueue on tests
...ons, reference commit Ids without subject. See Documentation/process/submitting-patches.rst > Eugenio P??rez (8): > tools/virtio: fix virtio_test.c indentation > vhost: Not cleaning batched descs in VHOST_SET_VRING_BASE ioctl > vhost: Replace vq->private_data access by backend accesors > vhost: Fix bad order in vhost_test_set_backend at enable > tools/virtio: Use __vring_new_virtqueue in virtio_test.c > tools/virtio: Extract virtqueue initialization in vq_reset > tools/virtio: Reset index in virtio_test --reset. > tools/virtio: Use tools/include/list.h i...
2004 Feb 06
0
Rejoinder: request for comments --- package "distr" --- S4 Classes for Distributions
...ewhat lengthy in our replies; we hope you could cope with this. Some specific questions emerged from this discussion: (1) Naming of "private" slots: We agree with a proposal by Duncan Murdoch [off-list] to use longer names in order to inhibit misuse of the @-operator (2) Naming of the accesors r,d,p,q: We tentatively would keep our naming as it makes apparent their origin. (3) Question of functions as slots: We hope to have convinced you that our solution has some advantages in connection with transformations of distributions. (4) Redundant saving of values of slots (in case of the pa...
2020 Apr 13
0
[PATCH 0/8] tools/vhost: Reset virtqueue on tests
...see it ok. > > Thanks! Sure, pls go ahead. > > > Eugenio P??rez (8): > > > tools/virtio: fix virtio_test.c indentation > > > vhost: Not cleaning batched descs in VHOST_SET_VRING_BASE ioctl > > > vhost: Replace vq->private_data access by backend accesors > > > vhost: Fix bad order in vhost_test_set_backend at enable > > > tools/virtio: Use __vring_new_virtqueue in virtio_test.c > > > tools/virtio: Extract virtqueue initialization in vq_reset > > > tools/virtio: Reset index in virtio_test --reset. > &g...
2008 Jun 10
0
[PATCH] xen-netfront: fix xennet_release_tx_bufs().
After restore on ia64 xen domain, kernel panics as follows. This patch fixes it. union skb_entry assumes sizeof(link->skb, pointer) == sizeof(list->link, unsigned). However this isn't true on ia64. So make link type unsigned long. And introduced two accesor. kernel unaligned access to 0xe0000000000000bd, ip=0xa0000001004c2ca0 xenwatch[14]: error during unaligned kernel access -1 [1] Modules linked in: Pid: 14, CPU 0, comm: xenwatch psr : 0000101008422010 ifs : 8000000000000307 ip : [<a0000001004c2ca0>] Not tainted (2.6.26-rc4x...
2008 Jun 10
0
[PATCH] xen-netfront: fix xennet_release_tx_bufs().
After restore on ia64 xen domain, kernel panics as follows. This patch fixes it. union skb_entry assumes sizeof(link->skb, pointer) == sizeof(list->link, unsigned). However this isn't true on ia64. So make link type unsigned long. And introduced two accesor. kernel unaligned access to 0xe0000000000000bd, ip=0xa0000001004c2ca0 xenwatch[14]: error during unaligned kernel access -1 [1] Modules linked in: Pid: 14, CPU 0, comm: xenwatch psr : 0000101008422010 ifs : 8000000000000307 ip : [<a0000001004c2ca0>] Not tainted (2.6.26-rc4x...
2008 Jun 10
0
[PATCH] xen-netfront: fix xennet_release_tx_bufs().
After restore on ia64 xen domain, kernel panics as follows. This patch fixes it. union skb_entry assumes sizeof(link->skb, pointer) == sizeof(list->link, unsigned). However this isn't true on ia64. So make link type unsigned long. And introduced two accesor. kernel unaligned access to 0xe0000000000000bd, ip=0xa0000001004c2ca0 xenwatch[14]: error during unaligned kernel access -1 [1] Modules linked in: Pid: 14, CPU 0, comm: xenwatch psr : 0000101008422010 ifs : 8000000000000307 ip : [<a0000001004c2ca0>] Not tainted (2.6.26-rc4x...