Displaying 14 results from an estimated 14 matches for "b_next".
2020 Feb 12
2
[nbdkit PATCH] filters: Remove most next_* wrappers
...e (struct backend *b)
{
- struct backend *b = nxdata;
b->config_complete (b);
return 0;
}
@@ -173,13 +171,6 @@ filter_config_complete (struct backend *b)
b->next->config_complete (b->next);
}
-static int
-next_preconnect (void *nxdata, int readonly)
-{
- struct backend *b_next = nxdata;
- return b_next->preconnect (b_next, readonly);
-}
-
static int
filter_preconnect (struct backend *b, int readonly)
{
@@ -188,7 +179,7 @@ filter_preconnect (struct backend *b, int readonly)
debug ("%s: preconnect", b->name);
if (f->filter.preconnect)
- ret...
2020 Feb 12
0
[PATCH nbdkit 3/3] server: filters: Remove struct b_h.
...s the whole chain. */
static void
filter_free (struct backend *b)
@@ -186,20 +176,19 @@ filter_config_complete (struct backend *b)
static int
next_preconnect (void *nxdata, int readonly)
{
- struct b_h *b_h = nxdata;
- return b_h->b->preconnect (b_h->b, readonly);
+ struct backend *b_next = nxdata;
+ return b_next->preconnect (b_next, readonly);
}
static int
filter_preconnect (struct backend *b, int readonly)
{
struct backend_filter *f = container_of (b, struct backend_filter, backend);
- struct b_h nxdata = { .b = b->next };
debug ("%s: preconnect",...
2020 Feb 12
5
[PATCH nbdkit 1/3] server: Rename global backend pointer to "top".
It's confusing to use the same terminology for a single backend as for
the linked list of backends. In particular it's often not clear if
we're calling the next backend or the whole chain of backends.
---
server/internal.h | 14 ++++++++++--
server/connections.c | 20 ++++++++---------
server/locks.c | 2 +-
server/main.c
2020 Feb 12
2
Re: [PATCH nbdkit 3/3] server: filters: Remove struct b_h.
...------------------------------
> 1 file changed, 73 insertions(+), 144 deletions(-)
>
> @@ -216,201 +205,181 @@ plugin_magic_config_key (struct backend *b)
> static int
> next_open (void *nxdata, int readonly)
> {
> - struct b_h *b_h = nxdata;
> + struct backend *b_next = nxdata;
>
> - return backend_open (b_h->b, readonly);
> + return backend_open (b_next, readonly);
> }
With this change, 'next_open' and '(int (*)(void *, int))backend_open'
now have identical semantics. I'm trying to see if there are further
changes w...
2020 Aug 19
0
[PATCH 23/28] lib82596: convert from dma_cache_sync to dma_sync_single_for_device
...ine virt_to_dma(lp, v) ((lp)->dma_addr + (dma_addr_t)((unsigned long)(v)-(unsigned long)((lp)->dma)))
-
static inline int init_rx_bufs(struct net_device *dev)
{
struct i596_private *lp = netdev_priv(dev);
@@ -508,7 +536,7 @@ static inline int init_rx_bufs(struct net_device *dev)
rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds));
rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
- DMA_WBACK_INV(dev, dma, sizeof(struct i596_dma));
+ dma_sync_dev(dev, dma, sizeof(struct i596_dma));
return 0;
}
@@ -547,7 +575,7 @@ static void rebuild_rx_bufs(struct net_device *dev)
lp->rbd_head = dm...
2020 Sep 15
0
[PATCH 11/18] lib82596: convert to dma_alloc_noncoherent
...ine virt_to_dma(lp, v) ((lp)->dma_addr + (dma_addr_t)((unsigned long)(v)-(unsigned long)((lp)->dma)))
-
static inline int init_rx_bufs(struct net_device *dev)
{
struct i596_private *lp = netdev_priv(dev);
@@ -508,7 +536,7 @@ static inline int init_rx_bufs(struct net_device *dev)
rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds));
rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
- DMA_WBACK_INV(dev, dma, sizeof(struct i596_dma));
+ dma_sync_dev(dev, dma, sizeof(struct i596_dma));
return 0;
}
@@ -547,7 +575,7 @@ static void rebuild_rx_bufs(struct net_device *dev)
lp->rbd_head = dm...
2020 Sep 14
2
[PATCH 11/17] sgiseeq: convert to dma_alloc_noncoherent
...ine virt_to_dma(lp, v) ((lp)->dma_addr + (dma_addr_t)((unsigned long)(v)-(unsigned long)((lp)->dma)))
-
static inline int init_rx_bufs(struct net_device *dev)
{
struct i596_private *lp = netdev_priv(dev);
@@ -508,7 +536,7 @@ static inline int init_rx_bufs(struct net_device *dev)
rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds));
rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
- DMA_WBACK_INV(dev, dma, sizeof(struct i596_dma));
+ dma_sync_dev(dev, dma, sizeof(struct i596_dma));
return 0;
}
@@ -547,7 +575,7 @@ static void rebuild_rx_bufs(struct net_device *dev)
lp->rbd_head = dm...
2020 Feb 12
0
Re: [PATCH nbdkit 3/3] server: filters: Remove struct b_h.
...gt; 1 file changed, 73 insertions(+), 144 deletions(-)
> >
>
> >@@ -216,201 +205,181 @@ plugin_magic_config_key (struct backend *b)
> > static int
> > next_open (void *nxdata, int readonly)
> > {
> >- struct b_h *b_h = nxdata;
> >+ struct backend *b_next = nxdata;
> >- return backend_open (b_h->b, readonly);
> >+ return backend_open (b_next, readonly);
> > }
>
> With this change, 'next_open' and '(int (*)(void *,
> int))backend_open' now have identical semantics. I'm trying to see
> if there...
2008 Jan 16
1
Understanding the ARC - arc_buf_hdr and arc_buf_t
I?m trying to understand the inner workings of the adaptive replacement cache (arc). I see there are arc_bufs and arc_buf_hdrs. Each arc_buf_hdr points to an arc_buf_t. The arc_buf_t is really one entry in a list of arc_buf_t entries. The multiple entries are accessed through the arc_buf_t?s b_next member.
Why does the arc_buf_hdr point to a list of arc_buf_ts and not just one arc_buf_t, i.e., how and why do multiple arc_buf_ts get inserted into this list?
What is the relationship between arc_buf_hdr?s b_datacnt and b_refcnt? Is b_datacnt the number of arc_buf_ts in the list? Does the b_ref...
2001 Aug 23
2
EXT3 Trouble on 2.4.4
...race for buffer at 0xc02db000 (I am CPU 0)
journal_dirty_metadata() [transaction.c:1101] file as BJ_Metadata
b_state:0xb1 b_list:BUF_CLEAN b_jlist:BJ_Metadata on_lru:1
cpu:0 on_hash:1 b_count:2 b_blocknr:1
b_jbd:1 b_frozen_data:00000000 b_committed_data:00000000
b_transaction:1 b_next_transaction:0 b_cp_transaction:0 b_trans_is_running:1
b_trans_is_comitting:0 b_jcount:0 <0>
journal_dirty_metadata() [transaction.c:1106] exit
b_state:0xb1 b_list:BUF_CLEAN b_jlist:BJ_Metadata on_lru:1
cpu:0 on_hash:1 b_count:2 b_blocknr:1
b_jbd:1 b_frozen_data:00000000 b...
2020 Sep 14
20
a saner API for allocating DMA addressable pages v2
Hi all,
this series replaced the DMA_ATTR_NON_CONSISTENT flag to dma_alloc_attrs
with a separate new dma_alloc_pages API, which is available on all
platforms. In addition to cleaning up the convoluted code path, this
ensures that other drivers that have asked for better support for
non-coherent DMA to pages with incurring bounce buffering over can finally
be properly supported.
I'm still a
2020 Sep 15
32
a saner API for allocating DMA addressable pages v3
Hi all,
this series replaced the DMA_ATTR_NON_CONSISTENT flag to dma_alloc_attrs
with a separate new dma_alloc_pages API, which is available on all
platforms. In addition to cleaning up the convoluted code path, this
ensures that other drivers that have asked for better support for
non-coherent DMA to pages with incurring bounce buffering over can finally
be properly supported.
As a follow up I
2009 Jul 19
7
How xVM is integrated with Crossbow
Hi, all
I want to get some information of How xVM is integrated with
Crossbow project.
Do some buddies have those documents or blogs?
Thanks
--luke
2020 Aug 19
39
a saner API for allocating DMA addressable pages
Hi all,
this series replaced the DMA_ATTR_NON_CONSISTENT flag to dma_alloc_attrs
with a separate new dma_alloc_pages API, which is available on all
platforms. In addition to cleaning up the convoluted code path, this
ensures that other drivers that have asked for better support for
non-coherent DMA to pages with incurring bounce buffering over can finally
be properly supported.
I'm still a