search for: do_

Displaying 20 results from an estimated 65 matches for "do_".

Did you mean: do
2006 Jan 26
2
do_* declarations (was: Re: [Xen-ia64-devel] [PATCH] added multicall)
Hi, on ia64, the do_* functions for hypercalls are called in C. However, they are not declared in any .h file. I think it is cleaner to declare them in an header file rather than locally. The question is in which header file. Thank you for any suggestion. The do_* functions are at least: extern long do_ni_hyperca...
2009 Nov 19
1
[PATCH libguestfs] syntax-check: expand TABs in generator.ml
...pr "}\n\n" @@ -5592,18 +5592,18 @@ and generate_daemon_actions () = | RConstString _ | RConstOptString _ | RString _ | RStringList _ | RHashtable _ | RStruct (_, _) | RStructList (_, _) -> - pr " if (r == %s)\n" error_code; - pr " /* do_%s has already called reply_with_error */\n" name; - pr " goto done;\n"; - pr "\n" + pr " if (r == %s)\n" error_code; + pr " /* do_%s has already called reply_with_error */\n" name; + pr " goto done;\n&qu...
2008 Mar 18
7
A question related with symbol reference?
hi, my friends: recently, i am reading the source codes about hypercall. First, i study a simple hypercall, for example, the "do_xen_version". In "xen-3.1.0-src\xen\common\kernel.c", the definition of "do_xen_version" is: DO(xen_version) (int cmd, XEN_GUEST_HANDLE(void) arg) { .... } according to the " #define DO(fn) long do_##fn ", the expanded form is "do_xen_version (...)"....
2005 Apr 12
3
where is internal function of sample()?
Hi there, I am trying to write a c++ shared library for R. I need a function which has the same functionality as sample() in R, i.e., does permutation, sample with/without replacement. Does R have internal sample routine so that I can call it directly? I did not find it in R.h, Rinternal.h. Thanks
2016 Jun 30
2
Calling C implementations of rnorm and friends
...uot;norm"? Also, I was looking for the C source code of rnorm, because I wanted to understand how the function works. Looking at Winston Chang's github R mirror, I found rnorm in the random.c file in the stats package. However, the code I find for it: #define DEFRAND2_REAL(name) \ SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ return random2(sn, sa, sb, name, REALSXP); \ } DEFRAND2_REAL(rnorm) Doesn't help me at all in understanding how it works. It should create a function random2(sn, sa, sb, norm, REALSXP); I understand that is a version of the random2 function that return...
2012 Dec 04
2
Audit of NMI and MCE paths
...ce concerns from changing to a recursive lock? As for spinlocks themselves, as far as I can reason, recursive locks are safe to use, as are per-cpu spinlocks which are used exclusivly in the NMI handler or MCE handler (but not both), given the proviso that we have C level reentrance protection for do_{nmi,mce}(). For the {rd,wr}msr()s, we can assume that the Xen code is good and is not going to fault on access to the MSR, but we certainly cant guarantee this. As a result, I do not think it is practical or indeed sensible to remove all possibility of faults from the NMI path (and MCE to a less...
2016 Jul 01
2
Calling C implementations of rnorm and friends
...because I wanted to >> understand how the function works. Looking at Winston Chang's github R >> mirror, I found rnorm in the random.c file in the stats package. However, >> the code I find for it: >> >> >> >> #define DEFRAND2_REAL(name) \ >> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >> return random2(sn, sa, sb, name, REALSXP); \ >> } >> DEFRAND2_REAL(rnorm) >> >> >> Doesn't help me at all in understanding how it works. It should create a >> function random2(sn, sa, sb, norm, REALSXP); I und...
2006 Oct 04
1
strip function
Hi, I would like to asign titles into strip of a panel of curves designed thanks to a xyplot function (lattice package) I ve tried the "strip" function, ... here is my code I would like to write in the strip of each panel conditionning varialbe (here, it is data[,1]) xyplot (data[,3] ~ data[,2] | data[,1] , strip.default (which.given=1, which.panel = c(1:15), var.name= c
2008 Mar 07
6
where is the location of definition of "do_xen_version"?
hi, my friends: Currently, i am studying the way of hypercall's implementation. i have already known the flow of hypercall's execuation, and i decided to add a new hypercall into the Xen. first, i want to know the detail of one hypercall function, for example, "do_xen_version", but i can not find the location of definition of "do_xen_version". who can help me? i have get some resualts as follows: [root@vt-0 xen-3.1.0-src]# find ./ -name "*.*" | xargs grep "do_xen_version" ./xen/include/xen/hypercall.h:do_xen_version( Binar...
2006 Mar 13
2
rsync a raw device
Hi all - is there some magic flag i'm missing that will allow me to rsync a raw device? Not the dev entry, but the device itself? I have a filesystem (backuppc data store) that does not respond well to directory traversal due to an extremely high number of hard links (which generate lots of disk seeks), and probably would not work well with rsync anyway due to a large number of actual
2016 Jun 30
0
Calling C implementations of rnorm and friends
...for the C source code of rnorm, because I wanted to > understand how the function works. Looking at Winston Chang's github R > mirror, I found rnorm in the random.c file in the stats package. However, > the code I find for it: > > > > #define DEFRAND2_REAL(name) \ > SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > return random2(sn, sa, sb, name, REALSXP); \ > } > DEFRAND2_REAL(rnorm) > > > Doesn't help me at all in understanding how it works. It should create a > function random2(sn, sa, sb, norm, REALSXP); I understand that is a version &g...
2016 Jul 01
1
Calling C implementations of rnorm and friends
...ing at Winston Chang's github R > >>> mirror, I found rnorm in the random.c file in the stats package. > However, > >>> the code I find for it: > >>> > >>> > >>> > >>> #define DEFRAND2_REAL(name) \ > >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > >>> return random2(sn, sa, sb, name, REALSXP); \ > >>> } > >>> DEFRAND2_REAL(rnorm) > >>> > >>> > >>> Doesn't help me at all in understanding how it works. It should create > a...
2013 Nov 20
0
[PATCH -tip v3 13/23] x86/trap: Use NOKPROBE_SYMBOL macro in trap.c
...ps.c | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/traps.h b/arch/x86/include/asm/traps.h index 58d66fe..ca32508 100644 --- a/arch/x86/include/asm/traps.h +++ b/arch/x86/include/asm/traps.h @@ -68,7 +68,7 @@ dotraplinkage void do_segment_not_present(struct pt_regs *, long); dotraplinkage void do_stack_segment(struct pt_regs *, long); #ifdef CONFIG_X86_64 dotraplinkage void do_double_fault(struct pt_regs *, long); -asmlinkage __kprobes struct pt_regs *sync_regs(struct pt_regs *); +asmlinkage struct pt_regs *sync_regs(struc...
2016 Jul 01
0
Calling C implementations of rnorm and friends
...understand how the function works. Looking at Winston Chang's github R >>> mirror, I found rnorm in the random.c file in the stats package. However, >>> the code I find for it: >>> >>> >>> >>> #define DEFRAND2_REAL(name) \ >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >>> return random2(sn, sa, sb, name, REALSXP); \ >>> } >>> DEFRAND2_REAL(rnorm) >>> >>> >>> Doesn't help me at all in understanding how it works. It should create a >>> function random2(sn, s...
2008 Jun 30
3
Trying to install an app from floppy
...rwxr-xr-x 1 root wheel 263 Aug 10 1994 visiolss.bm_ -rwxr-xr-x 1 root wheel 83 Aug 10 1994 visiolss.ma_ -rwxr-xr-x 1 root wheel 157 Aug 10 1994 visiomso.bm_ -rwxr-xr-x 1 root wheel 4428 Aug 10 1994 visiomso.dc_ -rwxr-xr-x 1 root wheel 3233 Aug 10 1994 visiomso.do_ -rwxr-xr-x 1 root wheel 5137 Aug 10 1994 visiomso.xl_ -rwxr-xr-x 1 root wheel 2371 Aug 10 1994 vsetup.ex_
2015 Nov 19
0
[ANNOUNCE] xf86-video-amdgpu 1.0.0
...ME for source buffer as well in amdgpu_dri2_copy_region2 Rename Option "NoAccel" to "Accel" PRIME: Don't advertise offload capabilities when acceleration is disabled Prefer drmModeSetCursor2 over drmModeSetCursor Skip disabled CRTCs in amdgpu_scanout_(do_)update Call xf86CrtcRotate from initial drmmode_set_desired_modes call Add amdgpu_pixmap.h to src/Makefile.am's EXTRA_DIST Bump version for 1.0.0 release Piotr Redlewski (2): Enable/disable CRTCs in DPMS hook Do not try to enable already enabled CRTCs in DPMS hook...
2017 Jul 14
0
[PATCH 02/27] daemon: Allow parts of the daemon and APIs to be written in OCaml.
...an object file from the OCaml code / runtime, as described here: https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html Furthermore, change the generator to allow individual APIs to be implemented in OCaml. This is picked by setting: impl = OCaml <ocaml_function>; The generator creates ‘do_function’ (the same one you would have to write by hand in C), with the function calling the named ‘ocaml_function’ and dealing with marshalling/unmarshalling the OCaml parameters. --- .gitignore | 6 +- Makefile.am | 2 +- common/mlutils/Makefile.am | 4 - daem...
2017 Apr 20
6
[PATCH 0/5] generator: daemon: Various simplifications to stubs code.
This is a series of simplifications to the stubs code. It's all refactoring, there is no functional change. Rich.
2015 Nov 12
0
[ANNOUNCE] xf86-video-ati 7.6.0
...alone glamor tree dri3: Use screen->CreatePixmap instead of fbCreatePixmap directly EXA: Return NULL from radeon_get_pixmap_bo if there is no driver private configure.ac: Check for misyncshm.h again Adapt radeon_sync.c for misyncshm.h vs misync.h as well Make radeon_do_pageflip take a BO handle directly Present: Add radeon_present_get_pixmap_handle helper glamor: Avoid generating GEM flink names for BOs shared via DRI3 v2 glamor: Handle GLAMOR_* flags removed from xserver Increase robustness against DRM page flip ioctl failures v3 Sim...
2015 Jun 24
10
[PATCH 0/5] uuid: add btrfs uuid change support and some rework
...add support of this. - uuids.c did a lot of deplicated work for changing uuid of fs. Use existed functions. -- Introduce new API: btrfstune_set_uuid_random Chen Hanxiao (5): uuid: add support to change uuid of btrfs partition uuid: use existed function of ext2 uuid: use newly introduced do_xfs_admin_uuid of xfs uuid: use existed do_mkswap_U New API: btrfstune_set_uuid_random daemon/btrfs.c | 81 ++++++++++++++++++++++++++++++++++++++++++ daemon/daemon.h | 6 ++++ daemon/uuids.c | 44 +++++------------------ daemon/xfs.c...