search for: _create

Displaying 14 results from an estimated 14 matches for "_create".

Did you mean: create
2023 Mar 11
1
[PATCH 03/11] kthread: Pass in the thread's name during creation
...14 insertions(+), 21 deletions(-) >> >> diff --git a/kernel/kthread.c b/kernel/kthread.c >> index 63574cee925e..831a55b406d8 100644 >> --- a/kernel/kthread.c >> +++ b/kernel/kthread.c >> @@ -38,6 +38,7 @@ struct task_struct *kthreadd_task; >> struct kthread_create_info >> { >> /* Information passed to kthread() from kthreadd. */ >> + char *full_name; >> int (*threadfn)(void *data); >> void *data; >> int node; >> @@ -343,10 +344,15 @@ static int kthread(void *_create) >> /* Release the structure when...
2017 Jun 05
3
Trying to use Opus in an STM32F429IIT6 embedded project
...aving no success. The code I wrote is: int size; int error; OpusDecoder* dec; size = opus_decoder_get_size(1); dec = (OpusDecoder *) malloc(size); error = opus_decoder_init(dec, 8000, 1); I also tried this code: int error; OpusDecoder *dec; dec = opus_decoder_create(8000, 1, &error); In this particular case, I got an error and the firmware crashes. Once I'm totally new to embedded systems, I'd like to ask some help from you. Can anyone shed some light on it? Thx a lot. Regards, Ulisses -------------- next part -------------- An HTML attachment...
2010 Jun 10
1
[PATCH v2] perl: Add explicit close() method (RHBZ#602592).
...d) hv_store (hv, \"_g\", 2, newSViv (PTR2IV ($var)), 0); + $arg = sv_bless (newRV ((SV*) hv), gv_stashpv(\"Sys::Guestfs\", 1)); diff --git a/src/generator.ml b/src/generator.ml index cf28978..beacd99 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -8821,10 +8821,30 @@ _create () RETVAL void -DESTROY (g) +DESTROY (sv) + SV *sv; + PPCODE: + /* For the 'g' argument above we do the conversion explicitly and + * don't rely on the typemap, because if the handle has been + * explicitly closed we don't want the typemap conversion...
2012 Aug 31
1
Memory Size?
In order to determine the optimum heap size requirements for my embedded C55xx design, I have used the following to get the encoder and decoder memory requirements: size = opus_encoder_get_size(config.channels); enc = malloc(size); error = opus_encoder_init(enc, config.Fs, config.channels, config.application); size = opus_decoder_get_size(config.channels);
2017 Jun 05
0
Trying to use Opus in an STM32F429IIT6 embedded project
...17 08:28 AM, Ulisses Piassa wrote: > I ported all the files from OpusLib 1.1.4 needed to compile the project, > but when I try to create and OpusDecode state, it returns the error -7 > (OPUS_ALLOC_FAIL). Are you getting OPUS_ALLOC_FAIL on the opus_decoder_init() too or just on opus_decoder_create()? > I'm compiling it with the USE_ALLOCA flag. I also tried to compile it > with the flags OVERRIDE_OPUS_ALLOC OVERRIDE_OPUS_FREE > 'opus_alloc(x)=NULL' and 'opus_free(x)=NULL', but still having no success. when you use OVERRIDE_OPUS_ALLOC and opus_alloc(x)=NULL you&...
2005 Dec 19
1
Preserving fallback with RJS
Hi guys, I really like RJS. I think they''ll replace partials in alot of instances. Unfortunately, because they''re automatically used like .rhtml and .rxml and are hard to specifically specify it makes it messy to preserve fallbacks when using them. For instance, using partials instead of rjs, my create method might look like: def create post = Post.new(params[:post]) ...
2010 Dec 01
1
stack + heap sizes
...c per channel. But are those sizes really independent of any settings, like frame_size, bitrate, complexity, etc. ? ? at least in our configuration I find these requirements:? ?- native stack: < 2.1kB (enc or dec) measured by RealView Profiler ?- heap: (summing up the celt_alloc calls): ???? mode_create: 2430 ???? enc_create: 10284 ???? dec_create: 17568 ?- GLOBAL_STACK_SIZE: ???? not sure! (default = 100k ???) ???? 2k is not enough, 5k is ok. ? our config: ?- version = 0.9.1 ?- ARM9, FIXED_POINT, DOUBLE_PRECISION ?- f<s> = 48kHz ?- frame_size = 240 (p.ch.) (--> 5ms)? ?- rate = 128 kbit/s...
2006 Mar 09
1
Segfault problem when using TWO dovecot servers!
Forgive me if this gets submitted twice. I had issues signing up for the listserv but I think I'm strait now. Hi all, I just started working with Dovecot and I'd like to use it for my organization, but I've run into a little problem. So far I love it and it does what I need. One thing we need is to be able to write to multiple mailbox formats on a per user basis (mbox or
2015 Feb 10
3
[PATCH 1/3] generator: add a simple HTML escaping function
--- generator/utils.ml | 8 +++++++- generator/utils.mli | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/generator/utils.ml b/generator/utils.ml index b24ba8c..3a62084 100644 --- a/generator/utils.ml +++ b/generator/utils.ml @@ -360,4 +360,10 @@ let args_of_optargs optargs = | OInt64 n -> Int64 n | OString n -> String n | OStringList n ->
2007 Jan 04
6
after_update attributes problem
Hey guys, I''m having a hard time w/ the after_update callback on rails... As far as I can tell, when I define a after_update callback on a model, the attributes of the object have the same values that they had *before* Base.save was called. I''m probably wrong so here''s the code: UNIT TEST: def test_register_item_adjusts_account_balance account =
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...klin Street, Fifth Floor, Boston, MA 02110-1301 USA + +use strict; +use warnings; + +package Sys::VirtV2V::Target::LibVirt::Vol; + +sub _new +{ + my $class = shift; + my ($vol) = @_; + + my $self = {}; + bless($self, $class); + + $self->{vol} = $vol; + + return $self; +} + +sub _create +{ + my $class = shift; + my ($pool, $name, $size) = @_; + + my $vol_xml = " + <volume> + <name>$name</name> + <capacity>$size</capacity> + </volume> + "; + + my $vol; + eval { + $vol = $pool-...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...breviations use the ogg internal conventions // Caution: libogg uses NULL as a sentinel in places. If you feed non-NULL, // on initial calls you can get into trouble ogg_sync_state *oy = NULL; // FIXME: Why is this magic required to make ogg_page work? // FIXME: Why is there no ogg_page_create? ogg_page og_allocated = {0, 0, 0, 0}; ogg_page *og = &og_allocated; oy = ogg_sync_create(); int flgBail = 0; int pageCount = -1; while(!flgBail) { dprintf("Page: %d\n", pageCount); rv0 = 0; while(rv0 != 1 && !flgBail) { rv0 = ogg_sync_pageout(...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...nnection::LibVirt; +use Sys::VirtV2V::Util qw(user_message parse_libvirt_volinfo); use Locale::TextDomain 'virt-v2v'; -sub _new -{ - my $class = shift; - my ($vol) = @_; - - my $self = {}; - bless($self, $class); - - $self->{vol} = $vol; - - return $self; -} - -sub _create -{ - my $class = shift; - my ($pool, $name, $size) = @_; - - my $vol_xml = " - <volume> - <name>$name</name> - <capacity>$size</capacity> - </volume> - "; - - my $vol; - eval { - $vol = $pool-...
2003 Dec 01
0
No subject
...gs for some people (like me). >I already identified what's causing the problem in the bug report and >thought that it wouldn't be too hard to fix but figured the samba team could >come up with a better fix than me. > Surely this is the wrong way around. When you copy a file you _create a new file_. When you move a file you just move its inode and all its access/modified/create time gets moved with it. Of course over a different fs or even network you do some pokery to set the times to the times that they show on the original file. Testing Samba 2.2.0 shows it is however doi...